From d3e422aa48b4f3a7dfbb05ffadfd63359d919ff5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 24 Jul 2016 19:33:28 -0400 Subject: [PATCH] Make talking-clock play nicely with pulse. --- src/talking-clock | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/talking-clock b/src/talking-clock index 09e079e..12c2296 100755 --- a/src/talking-clock +++ b/src/talking-clock @@ -221,16 +221,19 @@ 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" ;; "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" ;; "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" esac #install the new cron file.