File tree Expand file tree Collapse file tree
ansible/roles/sunshine/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ services:
55 # Don't change it
66 container_name : cloudy
77 # Need generous shared memory size as some services (eg. Steam) require a lot
8- shm_size : " 2G"
8+ # Half available memory (as is the case for most Linux distros)
9+ shm_size : " {{ (ansible_memtotal_mb / 2) | int }}M"
910 # Privileged required to run Steam with bwrap (sandboxing)
1011 privileged : true
1112 # Always start container on machine startup unless specifically stopped
Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ apt install -y /app/steam-libs-amd64.deb
191191apt install -y /app/steam-libs-i386.deb
192192apt install -y /app/steam.deb
193193
194+ # Patch steam launch script to prevent Desktop shortcut creation on first launch:
195+ # The file is redundant with launchbar shortcut but is on trusted by default on desktop and does not use Cloudy Pad launcher script
196+ sed -i 's/if \[ ! -L "\$ DESKTOP_DIR\/\$ STEAMPACKAGE\. desktop" \] ; then/if false; then # Patched by Cloudy Pad: prevent deskop shortcut creation/' /usr/lib/steam/bin_steam.sh
197+
194198_STEAM
195199
196200#
Original file line number Diff line number Diff line change 1111
1212wait-x-availability.sh
1313
14+ source export-dbus-address.sh
15+
1416echo " Preparing to start Heroic Games Launcher with args: $@ "
1517
1618# Copy default Heroic config if not already present
Original file line number Diff line number Diff line change 22
33wait-x-availability.sh
44
5+ source export-dbus-address.sh
6+
57/usr/games/lutris &
68
79LUTRIS_PID=$!
Original file line number Diff line number Diff line change 22
33wait-x-availability.sh
44
5+ source export-dbus-address.sh
6+
57echo " Starting Steam with args: $@ "
68
79# Copy default Steam config to enable Proton globally if not already present
Original file line number Diff line number Diff line change 1313 "checkForUpdatesOnStartup" : true ,
1414 "autoUpdateGames" : false ,
1515 "customWinePaths" : [],
16- "defaultInstallPath" : " $XDG_DATA_HOME/heroic" ,
16+ "defaultInstallPath" : " $XDG_DATA_HOME/heroic/Games " ,
1717 "libraryTopSection" : " disabled" ,
1818 "defaultSteamPath" : " $HOME/.steam/steam" ,
1919 "defaultWinePrefix" : " $XDG_DATA_HOME/heroic/Prefixes" ,
You can’t perform that action at this time.
0 commit comments