From 9ab15313548ee9d61693549f5f1d3d6e2aa157cf Mon Sep 17 00:00:00 2001 From: yhx5768 Date: Wed, 18 Mar 2020 13:58:55 +0800 Subject: [PATCH] add ubuntu desktop notifacation function --- tomato.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tomato.py b/tomato.py index 0978669..2cc61ec 100755 --- a/tomato.py +++ b/tomato.py @@ -87,6 +87,11 @@ def notify_me(msg): subprocess.run(['say', '-v', 'Daniel', msg]) except: pass + # sending ubuntu desktop notification + try: + subprocess.Popen(["notify-send", '🍅', msg]) + except Exception as e: + pass def help():