From 49fb1b334bdfd3b372be23de0026e7a0ed456583 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 6 Apr 2020 19:53:34 -0700 Subject: [PATCH] In dev mode, when checking for existing onionshare, check for processes that start with python3 as well as python --- onionshare_gui/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/onionshare_gui/__init__.py b/onionshare_gui/__init__.py index f0186a18..90b6d7ac 100644 --- a/onionshare_gui/__init__.py +++ b/onionshare_gui/__init__.py @@ -138,7 +138,11 @@ def main(): # Dev mode onionshare? if proc.info["cmdline"] and len(proc.info["cmdline"]) >= 2: if ( - os.path.basename(proc.info["cmdline"][0]).lower() == "python" + ( + os.path.basename(proc.info["cmdline"][0]).lower() == "python" + or os.path.basename(proc.info["cmdline"][0]).lower() + == "python3" + ) and os.path.basename(proc.info["cmdline"][1]) == "onionshare-gui" and proc.status() != "zombie" ):