From ca11a8e887246c0d002f4163261ffe78cab2ed67 Mon Sep 17 00:00:00 2001 From: Troy Benjegerdes Date: Fri, 6 Mar 2026 20:42:37 -0600 Subject: [PATCH] Fix context has already been set error on Linux This fix suggested by Gemini resolves an error that occurs on some newer versions of python (specifically the one in Debian 13) --- 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 bef2952..2ae8632 100644 --- a/dronecan_gui_tool/main.py +++ b/dronecan_gui_tool/main.py @@ -69,7 +69,7 @@ # Start method must be configured globally, and only once. Using 'spawn' ensures full compatibility with Windoze. # We need to check first if the start mode is already configured, because this code will be re-run for every child. # -if multiprocessing.get_start_method(True) != 'spawn': +if multiprocessing.get_start_method(allow_none=True) is None: multiprocessing.set_start_method('spawn') #