From 6be2fd69ee69e6976c80fc6464ff472d22f8bfee Mon Sep 17 00:00:00 2001 From: AHaldner Date: Thu, 18 Dec 2025 08:52:27 +0100 Subject: [PATCH] Replace subprocess.run with os.execv to directly exec the Rust binary --- hyfetch/rs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyfetch/rs.py b/hyfetch/rs.py index 4f0aabf6..a8cf2a24 100644 --- a/hyfetch/rs.py +++ b/hyfetch/rs.py @@ -21,7 +21,7 @@ def run_rust(): return # Run the rust executable, passing in all arguments - subprocess.run([str(pd)] + sys.argv[1:]) + os.execv(str(pd), [str(pd), *sys.argv[1:]]) if __name__ == '__main__':