File session-recover.patch of Package gamescope-session-steam
diff --git a/usr/share/gamescope-session-plus/sessions.d/steam b/usr/share/gamescope-session-plus/sessions.d/steam
index e131ec0..52feb25 100644
--- a/usr/share/gamescope-session-plus/sessions.d/steam
+++ b/usr/share/gamescope-session-plus/sessions.d/steam
@@ -8,12 +8,12 @@ function setup_custom_videos {
}
function short_session_recover {
- mkdir -p ~/.local/share
+ mkdir -p "$HOME/.local/share/Steam"
# remove some caches and stateful things known to cause Steam to fail to start if corrupt
rm -rf --one-file-system ~/.local/share/Steam/config/widevine
# extract the steam bootstrap to potentially fix the issue the next boot
if [[ -f "/usr/share/gamescope-session-plus/bootstrap_steam.tar.gz" ]]; then
- tar xf /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz -C ~/.local/share
+ tar xf /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz -C "$HOME/.local/share/Steam"
setup_custom_videos
fi
# change session to desktop as fallback
@@ -139,8 +139,8 @@ export CLIENTCMD="steam -gamepadui -steamos3 -steampal -steamdeck"
touch "${HOME}"/.steam/root/config/SteamAppData.vdf || true
if [[ -f "/usr/share/gamescope-session-plus/bootstrap_steam.tar.gz" ]] && ! grep -q "set_bootstrap=1" "$STEAM_BOOTSTRAP_CONFIG"; then
- mkdir -p ~/.local/share
- tar xf /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz -C ~/.local/share
+ mkdir -p "$HOME/.local/share/Steam"
+ tar xf /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz -C "$HOME/.local/share/Steam"
setup_custom_videos
echo "set_bootstrap=1" >> "$STEAM_BOOTSTRAP_CONFIG"
fi