2023-11-23 18:53:24 +00:00
|
|
|
diff --git a/usr/lib/hwsupport/steamos-automount.sh b/usr/lib/hwsupport/steamos-automount.sh
|
2024-06-30 07:34:08 +00:00
|
|
|
index a9408dd..b5a0e6b 100755
|
2023-11-08 17:53:39 +00:00
|
|
|
--- a/usr/lib/hwsupport/steamos-automount.sh
|
|
|
|
+++ b/usr/lib/hwsupport/steamos-automount.sh
|
2024-06-30 07:34:08 +00:00
|
|
|
@@ -36,7 +36,7 @@ send_steam_url()
|
|
|
|
if pgrep -x "steam" > /dev/null; then
|
|
|
|
# TODO use -ifrunning and check return value - if there was a steam process and it returns -1, the message wasn't sent
|
|
|
|
# need to retry until either steam process is gone or -ifrunning returns 0, or timeout i guess
|
|
|
|
- systemd-run -M ${DECK_UID}@ --user --collect --wait sh -c "./.steam/root/ubuntu12_32/steam steam://${command}/${encoded@Q}"
|
|
|
|
+ systemd-run --uid=${DECK_UID} --collect --wait sh -c "/usr/bin/steam steam://${command}/${encoded@Q}"
|
|
|
|
echo "Sent URL to steam: steam://${command}/${arg} (steam://${command}/${encoded})"
|
|
|
|
else
|
|
|
|
echo "Could not send steam URL steam://${command}/${arg} (steam://${command}/${encoded}) -- steam not running"
|