From ab10c88caa0a03d6aee76d81f887f82bb5dcee3d Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Sun, 26 Jan 2025 15:00:56 -0500 Subject: add env to prep script in py exec --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 031a708..944eaf7 100644 --- a/main.py +++ b/main.py @@ -54,7 +54,7 @@ class Plugin: prepare_script = downloads_dir / "prepare.sh" process = subprocess.run( - [str(prepare_script)], + ["/bin/bash", str(prepare_script)], capture_output=True, text=True, timeout=300 @@ -91,7 +91,7 @@ class Plugin: "message": e.stderr } except Exception as e: - decky.logger.error(f"Unexpected error: {str(e)}") + decky.logger.error(f"Unexpected error: {str(e)}") return { "status": "error", "message": str(e) -- cgit v1.2.3