diff options
| author | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2026-02-02 12:22:28 -0500 |
|---|---|---|
| committer | xXJsonDeruloXx <danielhimebauch@gmail.com> | 2026-02-02 12:25:44 -0500 |
| commit | c425491dfd548d4b21749f3a14e3bbeab9a62596 (patch) | |
| tree | 0b2097ae447932b0b05afd17eccd44cade753cb0 | |
| parent | 70027bd3d662807e19c587d13c8061e48760a4b5 (diff) | |
| download | Decky-Framegen-fix-steam-process-tracking-clean.tar.gz Decky-Framegen-fix-steam-process-tracking-clean.zip | |
Fix Steam process tracking - remove exec and filter -- separatorsfix-steam-process-tracking-clean
Steam process tracking requires:
1. Remove 'exec' from command execution (use direct call)
2. Filter out leading -- separators from launch options
3. Add trailing space to sed command (Lutris fix)
Applied to defaults/assets/fgmod.sh
Credit: https://github.com/benjamimgois/goverlay/commit/72d38b10a7710e628fef731eb4f9f335a4d80bd2
| -rwxr-xr-x | defaults/assets/fgmod.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/defaults/assets/fgmod.sh b/defaults/assets/fgmod.sh index d48856d..da5091a 100755 --- a/defaults/assets/fgmod.sh +++ b/defaults/assets/fgmod.sh @@ -68,7 +68,7 @@ for arg in "$@"; do fi # Extract executable path from YAML - exe_path=$(grep -E '^\s*exe:' "$config_file" | sed 's/.*exe:[[:space:]]*//') + exe_path=$(grep -E '^\s*exe:' "$config_file" | sed 's/.*exe:[[:space:]]*//' ) if [[ -n "$exe_path" ]]; then exe_folder_path=$(dirname "$exe_path") @@ -187,7 +187,13 @@ if [[ $# -gt 1 ]]; then # Execute the original command export SteamDeck=0 export WINEDLLOVERRIDES="$WINEDLLOVERRIDES,dxgi=n,b" - exec "$@" + + # Filter out leading -- separators (from Steam launch options) + while [[ $# -gt 0 && "$1" == "--" ]]; do + shift + done + + "$@" else echo "Done!" echo "----------------------------------------" |
