summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxXJsonDeruloXx <danielhimebauch@gmail.com>2026-02-02 12:22:28 -0500
committerxXJsonDeruloXx <danielhimebauch@gmail.com>2026-02-02 12:25:44 -0500
commitc425491dfd548d4b21749f3a14e3bbeab9a62596 (patch)
tree0b2097ae447932b0b05afd17eccd44cade753cb0
parent70027bd3d662807e19c587d13c8061e48760a4b5 (diff)
downloadDecky-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-xdefaults/assets/fgmod.sh10
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 "----------------------------------------"