summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-11 21:53:24 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-11 21:53:24 -0400
commitdde64b73d1cf60f5443ade0393eeb22502c93c99 (patch)
tree2b59bafe7c7ff785c920a137322213e6e1c6c0a4 /main.py
parent7b9323b6b1d7de349f1b474ed580d6ff70ea49b8 (diff)
downloaddecky-lsfg-vk-dde64b73d1cf60f5443ade0393eeb22502c93c99.tar.gz
decky-lsfg-vk-dde64b73d1cf60f5443ade0393eeb22502c93c99.zip
persist cmd pass through oops
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)