Disabled Caffeine
This commit is contained in:
parent
f1b3ffb483
commit
8e95eb5010
1 changed files with 3 additions and 1 deletions
|
|
@ -500,6 +500,8 @@ def sleep(seconds=2):
|
|||
|
||||
def stay_awake():
|
||||
"""Prevent the system from sleeping or hibernating."""
|
||||
# DISABLED due to VCR2008 dependency
|
||||
return
|
||||
# Bail if caffeine is already running
|
||||
for proc in psutil.process_iter():
|
||||
if proc.name() == 'caffeine.exe':
|
||||
|
|
@ -507,7 +509,7 @@ def stay_awake():
|
|||
# Extract and run
|
||||
extract_item('Caffeine', silent=True)
|
||||
try:
|
||||
popen_program(global_vars['Tools']['Caffeine'])
|
||||
popen_program([global_vars['Tools']['Caffeine']])
|
||||
except Exception:
|
||||
print_error('ERROR: No caffeine available.')
|
||||
print_warning('Please set the power setting to High Performance.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue