mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-12 11:22:14 -04: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
a53b95867f
commit
8955b2b6c6
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue