chore: Adjust how steam-patch is started.

This commit is contained in:
Kyle Gospodnetich 2023-10-05 16:57:58 -07:00
parent 4cf2b8d79b
commit 9a85b6d21c
7 changed files with 17 additions and 13 deletions

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
systemctl enable --now steam-patch@"$USER".service

View File

@ -0,0 +1,12 @@
[Unit]
Description=Steam Patch Loader for user %i
Wants=network.target
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/steam-patch --user=%i
[Install]
WantedBy=multi-user.target

View File

@ -1,11 +0,0 @@
[Unit]
Description=Steam Patches Loader
Wants=network.target
After=network.target bazzite-user-setup.service
[Service]
Type=simple
ExecStart=/usr/bin/steam-patch-wrapper --user=%u
[Install]
WantedBy=multi-user.target

View File

@ -15,7 +15,7 @@
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/steam-patch</annotate>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/bazzite-enable-steam-patch</annotate>
</action>
</policyconfig>

View File

@ -153,7 +153,6 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
else
systemctl enable --now handycon.service
fi
systemctl enable --now --global steam-patch.service
sed -i 's/ENABLE_HARDWARE_CONTROL_ON_NON_DECK_HARDWARE=0/ENABLE_HARDWARE_CONTROL_ON_NON_DECK_HARDWARE=1/g' /etc/default/steam-hardware-control
fi
systemctl disable --now jupiter-fan-control.service

View File

@ -115,6 +115,7 @@ 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
fi
fi