process detection mismatch between firefox and firefox-trunk fixed
This commit is contained in:
parent
5d983c5d8d
commit
a8f2010816
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def mozThunderbirdIsInstalled(): # check if Thunderbird is installed
|
||||||
|
|
||||||
def mozFirefoxIsRunning(): # check if Firefox is running
|
def mozFirefoxIsRunning(): # check if Firefox is running
|
||||||
|
|
||||||
cmd2exec = "ps auxw | grep -i firefox | grep -v grep | wc -l"
|
cmd2exec = "ps auxw | grep -v firefox-trunk | grep -i firefox | grep -v grep | wc -l"
|
||||||
cmdOutput = int(subprocess.check_output(cmd2exec,
|
cmdOutput = int(subprocess.check_output(cmd2exec,
|
||||||
shell=True).decode("utf-8"))
|
shell=True).decode("utf-8"))
|
||||||
return 1 if (cmdOutput > 0) else 0
|
return 1 if (cmdOutput > 0) else 0
|
||||||
|
|
Loading…
Reference in a new issue