From 62b0fd959fc9f5b41f0a4a816402fd0eacd20d8e Mon Sep 17 00:00:00 2001 From: Andrin Haldner <88372994+AHaldner@users.noreply.github.com> Date: Sat, 24 Jan 2026 06:17:55 +0100 Subject: [PATCH] Fix shell detection by using os.execv instead of subprocess.run (#469) 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__':