process detection mismatch between firefox and firefox-trunk fixed

This commit is contained in:
Francois B 2017-10-23 22:40:54 +02:00
parent 5d983c5d8d
commit a8f2010816

View file

@ -77,7 +77,7 @@ def mozThunderbirdIsInstalled(): # check if Thunderbird is installed
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,
shell=True).decode("utf-8"))
return 1 if (cmdOutput > 0) else 0