Revert to installing steam as a .deb package
Flatpak seems to complicate Steam's execution of Proton
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
18
overlay/etc/cont-init.d/90-configure_steam.sh
Normal file
18
overlay/etc/cont-init.d/90-configure_steam.sh
Normal 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"
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user