mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 07:49:48 -05:00
In dev mode, when checking for existing onionshare, check for processes that start with python3 as well as python
This commit is contained in:
parent
c07eda330d
commit
49fb1b334b
@ -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"
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user