diff options
| -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!" |
