Skip to content

Commit cd50b28

Browse files
Merge pull request #272 from PierreBeucher/dev-shm-size
Dev shm size
2 parents eb77e1b + 3ec6f55 commit cd50b28

6 files changed

Lines changed: 13 additions & 2 deletions

File tree

ansible/roles/sunshine/templates/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

containers/sunshine/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ apt install -y /app/steam-libs-amd64.deb
191191
apt install -y /app/steam-libs-i386.deb
192192
apt 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
#

containers/sunshine/overlay/cloudy/bin/heroic-start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
wait-x-availability.sh
1313

14+
source export-dbus-address.sh
15+
1416
echo "Preparing to start Heroic Games Launcher with args: $@"
1517

1618
# Copy default Heroic config if not already present

containers/sunshine/overlay/cloudy/bin/lutris-start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
wait-x-availability.sh
44

5+
source export-dbus-address.sh
6+
57
/usr/games/lutris &
68

79
LUTRIS_PID=$!

containers/sunshine/overlay/cloudy/bin/steam-start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
wait-x-availability.sh
44

5+
source export-dbus-address.sh
6+
57
echo "Starting Steam with args: $@"
68

79
# Copy default Steam config to enable Proton globally if not already present

containers/sunshine/overlay/cloudy/conf/heroic-default/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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",

0 commit comments

Comments
 (0)