From f5dd148b515b3cfceede81559c70f50e4a618889 Mon Sep 17 00:00:00 2001 From: James O'SHANNESSY <12959316+joshanne@users.noreply.github.com> Date: Fri, 5 Jun 2026 12:29:27 +1000 Subject: [PATCH] main: Fixes an incorrectly constructed environment PATH resulting in failure to launch applications While testing on Fedora 44, noticed that `_linux_parse_ip_link_show` was failing to run `ip link show`. After investigating, it was because `/usr/bin` was being dropped off the PATH because the windows hack made the PATH look like: `/home/user/.local/bin:/home/user/bin:/usr/local/bin:/usr/bin;/usr/bin`. That Windows PATH separator resulted in the `/usr/bin` folder not being usable on the PATH, and thus `ip link show` could not run. --- dronecan_gui_tool/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dronecan_gui_tool/main.py b/dronecan_gui_tool/main.py index 2ae8632..32b1650 100644 --- a/dronecan_gui_tool/main.py +++ b/dronecan_gui_tool/main.py @@ -62,7 +62,7 @@ # # Applying Windows-specific hacks # -os.environ['PATH'] = os.environ['PATH'] + ';' + os.path.dirname(sys.executable) # Otherwise it fails to load on Win 10 +os.environ['PATH'] = os.environ['PATH'] + os.pathsep + os.path.dirname(sys.executable) # Otherwise it fails to load on Win 10 # # Configuring multiprocessing.