From c425491dfd548d4b21749f3a14e3bbeab9a62596 Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Mon, 2 Feb 2026 12:22:28 -0500 Subject: Fix Steam process tracking - remove exec and filter -- separators 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 --- defaults/assets/fgmod.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'defaults/assets/fgmod.sh') 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 "----------------------------------------" -- cgit v1.2.3 From 62df0441f1ddc83c31dccc7cf9c62a762aed4994 Mon Sep 17 00:00:00 2001 From: wuriko Date: Sun, 8 Feb 2026 15:08:04 +0100 Subject: feat: add support for optiscaler config variables --- defaults/assets/fgmod.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'defaults/assets/fgmod.sh') diff --git a/defaults/assets/fgmod.sh b/defaults/assets/fgmod.sh index d48856d..efe1ef2 100755 --- a/defaults/assets/fgmod.sh +++ b/defaults/assets/fgmod.sh @@ -128,6 +128,11 @@ else logger -t fgmod "📄 OptiScaler.ini installed to $exe_folder_path" fi +# === OptiScaler env variables Handling === +if command -v python &> /dev/null && [ -f "$fgmod_path/update-optiscaler-config.py" ]; then + python "$fgmod_path/update-optiscaler-config.py" "$exe_folder_path/OptiScaler.ini" +fi + # === ASI Plugins Directory === if [[ -d "$fgmod_path/plugins" ]]; then echo "🔌 Installing ASI plugins directory" -- cgit v1.2.3 From 938110d2d94f3a51887fb63ed4d74b9a29728e55 Mon Sep 17 00:00:00 2001 From: wuriko Date: Wed, 11 Feb 2026 07:46:54 +0100 Subject: refactor: remove unnecessary python check --- defaults/assets/fgmod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'defaults/assets/fgmod.sh') diff --git a/defaults/assets/fgmod.sh b/defaults/assets/fgmod.sh index efe1ef2..30d74ac 100755 --- a/defaults/assets/fgmod.sh +++ b/defaults/assets/fgmod.sh @@ -129,7 +129,7 @@ else fi # === OptiScaler env variables Handling === -if command -v python &> /dev/null && [ -f "$fgmod_path/update-optiscaler-config.py" ]; then +if [[ -f "$fgmod_path/update-optiscaler-config.py" ]]; then python "$fgmod_path/update-optiscaler-config.py" "$exe_folder_path/OptiScaler.ini" fi -- cgit v1.2.3