1
0
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:
Gobinath 2017-03-10 14:22:13 -05:00
parent 04b1dca9f3
commit ee73e9c76a

View File

@ -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