From 6c632da3271d6dbbefe555bf363cb6685ceddbe1 Mon Sep 17 00:00:00 2001 From: alps2006 Date: Wed, 27 May 2020 09:45:17 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20`osascript:=20display=20notification=20wi?= =?UTF-8?q?th=20title=20"=F0=9F=93=A7=20xxxx"=20subtitle=20"xxxx"=20:=20No?= =?UTF-8?q?=20such=20file=20or=20directory`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/mailsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mailsync b/bin/mailsync index 9c3710c..6aeb946 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -21,7 +21,7 @@ export DISPLAY=:0.0 # Settings are different for MacOS (Darwin) systems. if [ "$(uname)" = "Darwin" ]; then notify() { osascript -e "display notification \"$2 in $1\" with title \"You've got Mail\" subtitle \"Account: $account\"" && sleep 2 ;} - messageinfo() { osascript "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} + messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} else notify() { notify-send --app-name="mutt-wizard" "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." ;} messageinfo() { notify-send --app-name="mutt-wizard" "📧$from:" "$subject" ;}