From 083c32d354c2cf200f4de92208180f796381c57e Mon Sep 17 00:00:00 2001 From: jticket1024 Date: Thu, 10 May 2018 09:19:25 -0800 Subject: [PATCH] Fixed crontab for pulse users, will work fine with pulseaudio now. Made Install script by default +x --- INSTALL | 0 src/talking-clock | 9 +++------ 2 files changed, 3 insertions(+), 6 deletions(-) mode change 100644 => 100755 INSTALL diff --git a/INSTALL b/INSTALL old mode 100644 new mode 100755 diff --git a/src/talking-clock b/src/talking-clock index d799e68..64410b4 100755 --- a/src/talking-clock +++ b/src/talking-clock @@ -222,20 +222,17 @@ if [ "$1" == "--cron" ] ; then "1") #Chime once per hour. echo "# talking-clock settings" >> "$crontabFile" - echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile" - echo '0 * * * * /usr/bin/talking-clock &> /dev/null' >> "$crontabFile" + echo "0 * * * * XDG_RUNTIME_DIR=/run/user/$UID /usr/bin/talking-clock &> /dev/null" >> "$crontabFile" ;; "2") #Chime twice per hour. echo "# talking-clock settings" >> "$crontabFile" - echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile" - echo '0,30 * * * * talking-clock &> /dev/null' >> "$crontabFile" + echo "0,30 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile" ;; "4") #Chime four times per hour. echo "# talking-clock settings" >> "$crontabFile" - echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile" - echo '0,15,30,45 * * * * talking-clock &> /dev/null' >> "$crontabFile" + echo "0,15,30,45 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile" esac #install the new cron file. if [ -f/"$crontabFile" ]; then