Revert to installing steam as a .deb package

Flatpak seems to complicate Steam's execution of Proton
This commit is contained in:
Josh.5
2023-07-17 12:35:28 +12:00
parent 23c5df2996
commit 659bde74f5
8 changed files with 49 additions and 107 deletions

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env bash
echo "**** Configure Steam /mnt/games steamapps folder ****"
# Upon first execution of this container, /opt/scripts/install_steam.sh will create a library location named "Mounted
# Games into the /mnt/games/GameLibrary/SteamLibrary location, but not create the required steamapps folder"
# Check /mnt/games to see if it is configured as a Steam Library, and if it is, make sure the steamapps folder exists
MNT_LIBRARY_PATH="/mnt/games/GameLibrary/SteamLibrary"
if [ -f "$MNT_LIBRARY_PATH/libraryfolder.vdf" ] && [ ! -d "$MNT_LIBRARY_PATH/steamapps" ]; then
mkdir -pm 777 "$MNT_LIBRARY_PATH/steamapps"
fi

View File

@@ -26,8 +26,6 @@ if [[ "${is_privileged}" == "true" ]]; then
echo "**** Configure container to run udev management ****";
# Enable supervisord script
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/udev.ini
# Make startup script executable
chmod +x /usr/bin/start-udev.sh
# Configure udev permissions
if [[ -f /lib/udev/rules.d/60-steam-input.rules ]]; then
sed -i 's/MODE="0660"/MODE="0666"/' /lib/udev/rules.d/60-steam-input.rules

View File

@@ -0,0 +1,18 @@
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"

View File

@@ -31,7 +31,7 @@ if [ "${MODE}" == "s" ] | [ "${MODE}" == "secondary" ]; then
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/udev.ini
fi
# TODO: Disabled some stuff for development... re-enable it after Archis working
# TODO: Disabled some stuff for development... re-enable it after Arch is working
echo " - DISABLEING dind"
sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/dind.ini
#echo " - DISABLEING desktop"

View File

@@ -10,8 +10,7 @@ autorestart=true
startretries=50
user=%(ENV_USER)s
directory=/home/%(ENV_USER)s
# command=/usr/games/steam -bigpicture
command=/usr/games/steam
command=/usr/games/steam %(STEAM_ARGS)s
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s"
stopsignal=INT
stdout_logfile=/home/%(ENV_USER)s/.cache/log/steam.log