mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
utilities.py: Use full binary path
This commit is contained in:
@@ -163,7 +163,7 @@ def disable_sleep_while_running():
|
|||||||
logging.info("Disabling Idle Sleep")
|
logging.info("Disabling Idle Sleep")
|
||||||
if sleep_process is None:
|
if sleep_process is None:
|
||||||
# If sleep_process is active, we'll just keep it running
|
# If sleep_process is active, we'll just keep it running
|
||||||
sleep_process = subprocess.Popen(["caffeinate", "-d", "-i", "-s"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
sleep_process = subprocess.Popen(["/usr/bin/caffeinate", "-d", "-i", "-s"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
# Ensures that if we don't properly close the process, 'atexit' will for us
|
# Ensures that if we don't properly close the process, 'atexit' will for us
|
||||||
atexit.register(enable_sleep_after_running)
|
atexit.register(enable_sleep_after_running)
|
||||||
|
|
||||||
@@ -525,7 +525,7 @@ def block_os_updaters():
|
|||||||
"Software Update",
|
"Software Update",
|
||||||
"MobileSoftwareUpdate",
|
"MobileSoftwareUpdate",
|
||||||
]
|
]
|
||||||
output = subprocess.check_output(["ps", "-ax"])
|
output = subprocess.check_output(["/bin/ps", "-ax"])
|
||||||
lines = output.splitlines()
|
lines = output.splitlines()
|
||||||
for line in lines:
|
for line in lines:
|
||||||
entry = line.split()
|
entry = line.split()
|
||||||
|
|||||||
Reference in New Issue
Block a user