mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 18:35:30 +00:00
chore: Adjust how steam-patch is started.
This commit is contained in:
parent
4cf2b8d79b
commit
9a85b6d21c
3
system_files/deck/shared/usr/bin/bazzite-enable-steam-patch
Executable file
3
system_files/deck/shared/usr/bin/bazzite-enable-steam-patch
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
systemctl enable --now steam-patch@"$USER".service
|
@ -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
|
@ -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
|
@ -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>
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user