From d020c8f4fe3c1ede01ad1e4d66f0b8591f33b318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Baylac=20Jacqu=C3=A9?= Date: Mon, 5 Dec 2022 14:44:27 +0100 Subject: [PATCH] Exec: search for executables in the PATH Using execvp instead of execv. It'll look for the binary in PATH if the bin_path provided is not an explicit path. --- src/nixglhost_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nixglhost_wrapper.py b/src/nixglhost_wrapper.py index 9ffc20b..50bcab8 100755 --- a/src/nixglhost_wrapper.py +++ b/src/nixglhost_wrapper.py @@ -422,7 +422,7 @@ def exec_binary(bin_path: str, args: List[str]) -> None: # The following two env variables are required by our patched libglvnd # implementation to figure out what kind of driver the host # machine is using. - os.execv(bin_path, [bin_path] + args) + os.execvp(bin_path, [bin_path] + args) def main(args):