fix: Avoid creating ~/.steam/steam manually, create needed file in systemd service definition for steam-patch.

This commit is contained in:
Kyle Gospodnetich 2023-10-06 00:29:24 -07:00
parent e968a8534b
commit edbfd0c1c6
2 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,15 @@
Description=Steam Patch Loader for user %i
Wants=network.target
After=network.target
PathExists=/var/home/%i/.steam/steam/
[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
ExecStartPre=touch "/var/home/%i/.steam/steam/.cef-enable-remote-debugging"
ExecStart=/usr/bin/steam-patch --user=%i
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View File

@ -113,8 +113,6 @@ fi
# Steam Patch setup
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
if [[ ":ROG Ally RC71L_RC71L:AYA NEO:AYANEO:AIR Plus:ONEXPLAYER:AOKZOE:G1619-01:G1621-02:MicroPC:G1619-01:G1621-02:MicroPC:AYA NEO:AYANEO:AIR Plus:AOKZOE:ONEXPLAYER:" =~ ":$SYS_ID:" ]]; then
mkdir -p "$HOME/.steam/steam/"
touch "$HOME/.steam/steam/.cef-enable-remote-debugging"
pkexec /usr/bin/bazzite-enable-steam-patch "$USER"
fi
fi