Skip to content

Commit

Permalink
utilities.py: Use full binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed May 31, 2024
1 parent e086d0a commit 074d56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencore_legacy_patcher/support/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def disable_sleep_while_running():
logging.info("Disabling Idle Sleep")
if sleep_process is None:
# 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
atexit.register(enable_sleep_after_running)

Expand Down Expand Up @@ -525,7 +525,7 @@ def block_os_updaters():
"Software Update",
"MobileSoftwareUpdate",
]
output = subprocess.check_output(["ps", "-ax"])
output = subprocess.check_output(["/bin/ps", "-ax"])
lines = output.splitlines()
for line in lines:
entry = line.split()
Expand Down

0 comments on commit 074d56e

Please sign in to comment.