mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 16:29:31 -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?
|
# Dev mode onionshare?
|
||||||
if proc.info["cmdline"] and len(proc.info["cmdline"]) >= 2:
|
if proc.info["cmdline"] and len(proc.info["cmdline"]) >= 2:
|
||||||
if (
|
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 os.path.basename(proc.info["cmdline"][1]) == "onionshare-gui"
|
||||||
and proc.status() != "zombie"
|
and proc.status() != "zombie"
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user