summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxXJsonDeruloXx <danielhimebauch@gmail.com>2026-02-02 12:14:42 -0500
committerxXJsonDeruloXx <danielhimebauch@gmail.com>2026-02-02 12:14:42 -0500
commit0e3a66408bac7ebe73ba029ffcf1f97772c7b819 (patch)
tree19101407b18a4f40c7e5a380af37f9595d7e7247
parent62b5571cc11097b75a146f696c59fe1e6c85e6f0 (diff)
downloadDecky-Framegen-fix-steam-process-tracking.tar.gz
Decky-Framegen-fix-steam-process-tracking.zip
Fix Steam process tracking - filter out leading -- separatorsfix-steam-process-tracking
Steam adds -- separators to launch options which can break process tracking. This fix filters them out before executing the game command. Applied to defaults/assets/fgmod.sh Credit: https://github.com/benjamimgois/goverlay/commit/72d38b10a7710e628fef731eb4f9f335a4d80bd2
-rwxr-xr-xdefaults/assets/fgmod.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/defaults/assets/fgmod.sh b/defaults/assets/fgmod.sh
index ba8846a..54b69c4 100755
--- a/defaults/assets/fgmod.sh
+++ b/defaults/assets/fgmod.sh
@@ -168,6 +168,12 @@ if [[ $# -gt 1 ]]; then
# Execute the original command with proper environment variables
export SteamDeck=0
export WINEDLLOVERRIDES="dxgi=n,b${WINEDLLOVERRIDES:+,$WINEDLLOVERRIDES}"
+
+ # Filter out leading -- separators (from Steam launch options)
+ while [[ $# -gt 0 && "$1" == "--" ]]; do
+ shift
+ done
+
exec "$@"
else
echo "Done!"