diff options
| author | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2026-02-02 12:14:42 -0500 |
|---|---|---|
| committer | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2026-02-02 12:14:42 -0500 |
| commit | 0e3a66408bac7ebe73ba029ffcf1f97772c7b819 (patch) | |
| tree | 19101407b18a4f40c7e5a380af37f9595d7e7247 | |
| parent | 62b5571cc11097b75a146f696c59fe1e6c85e6f0 (diff) | |
| download | Decky-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-x | defaults/assets/fgmod.sh | 6 |
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!" |
