Fix standalone instance in Arch

This commit is contained in:
Gobinath 2017-04-28 13:13:28 -04:00
parent 2c0db7fcb7
commit 77c456ddae
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def running():
else:
# In older versions cmdline was a list object
cmd_line = proc.cmdline
if 'python3' in cmd_line[0] and ('safeeyes' in cmd_line[1] or 'safeeyes' in cmd_line):
if ('python3' in cmd_line[0] or 'python' in cmd_line[0]) and ('safeeyes' in cmd_line[1] or 'safeeyes' in cmd_line):
process_count += 1
if process_count > 1:
return True