mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-01 03:21:41 +00:00
34 lines
2.1 KiB
Diff
34 lines
2.1 KiB
Diff
diff --git a/usr/lib/hwsupport/steamos-automount.sh b/usr/lib/hwsupport/steamos-automount.sh
|
|
index 023d95e..d69fd03 100755
|
|
--- a/usr/lib/hwsupport/steamos-automount.sh
|
|
+++ b/usr/lib/hwsupport/steamos-automount.sh
|
|
@@ -162,13 +162,14 @@
|
|
fi
|
|
|
|
# Ask udisks to auto-mount. This needs a version of udisks that supports the 'as-user' option.
|
|
+ USER=$(id -nu 1000)
|
|
ret=0
|
|
reply=$(busctl call --allow-interactive-authorization=false --expect-reply=true --json=short \
|
|
org.freedesktop.UDisks2 \
|
|
/org/freedesktop/UDisks2/block_devices/"${DEVBASE}" \
|
|
org.freedesktop.UDisks2.Filesystem \
|
|
Mount 'a{sv}' 4 \
|
|
- as-user s deck \
|
|
+ as-user s ${USER} \
|
|
auth.no_user_interaction b true \
|
|
fstype s "$FSTYPE" \
|
|
options s "$OPTS") || ret=$?
|
|
@@ -221,9 +222,9 @@
|
|
# bind mount compatdata folder from internal disk
|
|
mkdir -p "${mount_point}"/steamapps/compatdata
|
|
chown 1000:1000 "${mount_point}"/steamapps{,/compatdata}
|
|
- mkdir -p /home/deck/.local/share/Steam/steamapps/compatdata
|
|
- chown 1000:1000 /home/deck/.local{,/share{,/Steam{,/steamapps{,/compatdata}}}}
|
|
- mount --rbind /home/deck/.local/share/Steam/steamapps/compatdata "${mount_point}"/steamapps/compatdata
|
|
+ mkdir -p /home/${USER}/.local/share/Steam/steamapps/compatdata
|
|
+ chown 1000:1000 /home/${USER}/.local{,/share{,/Steam{,/steamapps{,/compatdata}}}}
|
|
+ mount --rbind /home/${USER}/.local/share/Steam/steamapps/compatdata "${mount_point}"/steamapps/compatdata
|
|
fi
|
|
chown 1000:1000 -- "${mount_point}"
|
|
#### SteamOS Btrfs End ####
|