Files
docker-steam-headless/overlay/etc/cont-init.d/90-configure_steam.sh
Josh.5 659bde74f5 Revert to installing steam as a .deb package
Flatpak seems to complicate Steam's execution of Proton
2023-07-17 12:35:28 +12:00

19 lines
696 B
Bash

echo "**** Configure Steam ****"
if [ "${ENABLE_STEAM:-}" = "true" ]; then
echo "Enable Steam service"
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/steam.ini
# Remove old autostart script. We should be starting steam with the supervisor service
mkdir -p "${USER_HOME:?}/.config/autostart"
# if grep "Exec=/usr/bin/flatpak" "${USER_HOME:?}/.config/autostart/Steam.desktop" &> /dev/null; then
# rm -fv "${USER_HOME:?}/.config/autostart/Steam.desktop"
# fi
rm -fv "${USER_HOME:?}/.config/autostart/Steam.desktop"
else
echo "Disable Steam service"
sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/steam.ini
fi
echo "DONE"