at 23.05-pre 2.1 kB view raw
1diff --git a/notifypy/os_notifiers/linux.py b/notifypy/os_notifiers/linux.py 2index ee89216..5201574 100644 3--- a/notifypy/os_notifiers/linux.py 4+++ b/notifypy/os_notifiers/linux.py 5@@ -53,30 +53,12 @@ class LinuxNotifierLibNotify(BaseNotifier): 6 @staticmethod 7 def _find_installed_aplay(): 8 """Function to find the path for notify-send""" 9- try: 10- run_which_for_aplay = subprocess.check_output(["which", "aplay"]) 11- return run_which_for_aplay.decode("utf-8") 12- except subprocess.CalledProcessError: 13- logger.exception("Unable to find aplay.") 14- return False 15- except Exception: 16- logger.exception("Unhandled exception for finding aplay.") 17- return False 18+ return "@aplay@" 19 20 @staticmethod 21 def _find_installed_notify_send(): 22 """Function to find the path for notify-send""" 23- try: 24- run_which_for_notify_send = subprocess.check_output( 25- ["which", "notify-send"] 26- ) 27- return run_which_for_notify_send.decode("utf-8") 28- except subprocess.CalledProcessError: 29- logger.exception("Unable to find notify-send.") 30- return False 31- except Exception: 32- logger.exception("Unhandled exception for finding notify-send.") 33- return False 34+ return "@notifysend@" 35 36 def send_notification( 37 self, 38@@ -159,15 +141,7 @@ class LinuxNotifier(BaseNotifier): 39 @staticmethod 40 def _find_installed_aplay(): 41 """Function to find the path for notify-send""" 42- try: 43- run_which_for_aplay = subprocess.check_output(["which", "aplay"]) 44- return run_which_for_aplay.decode("utf-8") 45- except subprocess.CalledProcessError: 46- logger.exception("Unable to find aplay.") 47- return False 48- except Exception: 49- logger.exception("Unhandled exception for finding aplay.") 50- return False 51+ return "@aplay@" 52 53 def send_notification( 54 self,