mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2025-01-01 00:47:31 +01:00
Fix considering sublime as safeeyes
This commit is contained in:
parent
04b1dca9f3
commit
ee73e9c76a
@ -263,7 +263,8 @@ def running():
|
||||
for proc in psutil.process_iter():
|
||||
try:
|
||||
# Check if safeeyes is in process arguments
|
||||
if 'safeeyes' in proc.cmdline()[1]:
|
||||
cmd_line = proc.cmdline()
|
||||
if 'python2' == cmd_line[0] and 'safeeyes' in cmd_line[1]:
|
||||
process_count += 1
|
||||
if process_count > 1:
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user