python3Packages.notify-py: hardcode paths to aplay, notify-send, and which

This commit is contained in:
Robert Schütz
2021-06-10 15:12:07 +02:00
parent b633a6d1f7
commit 0010e0bb58
3 changed files with 101 additions and 9 deletions
@@ -0,0 +1,13 @@
diff --git a/notifypy/os_notifiers/macos.py b/notifypy/os_notifiers/macos.py
index 68731fb..53fcee3 100644
--- a/notifypy/os_notifiers/macos.py
+++ b/notifypy/os_notifiers/macos.py
@@ -75,7 +75,7 @@ class MacOSNotifier(BaseNotifier):
def _find_installed_afplay():
"""Function to find the path for afplay"""
try:
- run_which_for_aplay = subprocess.check_output(["which", "afplay"])
+ run_which_for_aplay = subprocess.check_output(["@which@", "afplay"])
return run_which_for_aplay.decode("utf-8")
except subprocess.CalledProcessError:
logger.exception("Unable to find aplay.")