summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 64412b5..e90027d 100644
--- a/main.py
+++ b/main.py
@@ -323,6 +323,10 @@ exec "$@"
else:
script_content += "# export MESA_VK_WSI_PRESENT_MODE=immediate # - disable vsync\n"
+ # Add the exec line to allow the script to execute passed commands
+ script_content += "\n# Execute the passed command with the environment variables set\n"
+ script_content += "exec \"$@\"\n"
+
# Write the updated script
with open(lsfg_script_path, 'w') as f:
f.write(script_content)