From d8a04226ff230136195f4e27cd5bc07f12470ddd Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 5 May 2025 10:34:09 +0300 Subject: [PATCH] flatpak-workarounds.bash: Steam Deck laziness --- bash/flatpak-workarounds.bash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash index e9cc3a4..3efddbb 100755 --- a/bash/flatpak-workarounds.bash +++ b/bash/flatpak-workarounds.bash @@ -83,7 +83,15 @@ flatpak override com.valvesoftware.Steam --filesystem=~/SteamLibrary:create $@ flatpak override net.lutris.Lutris --filesystem=~/SteamLibrary:create $@ flatpak override com.heroicgameslauncher.hgl --filesystem=~/SteamLibrary:create $@ -# TODO: if for sdcard here to enable laziness +# My Steam Deck laziness. My systemd units check for /var/ and Steam checks +# free space based on top level directory so it has to be a subdirectory +# and while the mount point may be /var/sdcard I don't want to give it +# access to root directory in case it denied that for security +if [ -d /var/sdcard/Steam/Library ]; then + flatpak override com.valvesoftware.Steam --filesystem=/var/sdcard/Steam/Library:create $@ + flatpak override net.lutris.Lutris --filesystem=/var/sdcard/Steam/Library:create $@ + flatpak override com.heroicgameslauncher.hgl --filesystem=/var/sdcard/Steam/Library:create $@ +fi # https://github.com/ValveSoftware/steam-for-linux/issues/4924 # ref: the experiment near top