From c7df70d6ae1feb120651ee6b4ab6f411f720d0cb Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 16 Feb 2011 13:23:38 +0100 Subject: [PATCH] Call icalBuddy not as root; and adjust bullet --- sys/profile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/profile b/sys/profile index ce201d4..f1ffada 100644 --- a/sys/profile +++ b/sys/profile @@ -113,9 +113,13 @@ fi # icalBuddy(1) type -p icalBuddy >/dev/null 2>&1 -if [ $? -eq 0 ]; then - icalBuddy -f -n -npn -nc -ps "/ » /" -eep "url,notes" \ - eventsToday+1 | grep "•" +if [ $? -eq 0 -a "$UID" -ne 0 ]; then + case "$LANG" in + *.UTF*) BUL="•"; SEP="»"; ;; + *) BUL="*"; SEP=">"; ;; + esac + icalBuddy -f -n -npn -nc -b " $BUL " -ps "/ $SEP /" -eep "url,notes" \ + eventsToday+1 | grep "$BUL" [ $? -eq 0 ] && echo else # remind(1) -- 2.39.2