Try to make codeclimate happy
This commit is contained in:
parent
a5ef863647
commit
f19cf652cb
1 changed files with 2 additions and 1 deletions
|
@ -69,8 +69,9 @@ class Module(bumblebee.engine.Module):
|
|||
def _resume_screensaver(self):
|
||||
pids = []
|
||||
success = True
|
||||
xprop_path = bumblebee.util.which('xprop')
|
||||
for process in psutil.process_iter():
|
||||
if process.cmdline() == [bumblebee.util.which('xprop'), '-id', str(self._xid), '-spy']:
|
||||
if process.cmdline() == [xprop_path, '-id', str(self._xid), '-spy']:
|
||||
pids.append(process.pid)
|
||||
for pid in pids:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue