From 7f0caca15a263b4349124ce58b8648b5aecdf28f Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 1 Sep 2013 12:54:19 -0400 Subject: [PATCH] Both conky and my scripts conky calls create temporary files that get left around wherever it might run from. This ensures they all go someplace out of the way. --- run-conky.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/run-conky.sh b/run-conky.sh index 30547dd..dd97fcd 100755 --- a/run-conky.sh +++ b/run-conky.sh @@ -10,6 +10,18 @@ # be found on Creative Commons' website at: # http://creativecommons.org/publicdomain/zero/1.0/legalcode). +RUNNING_DIR=$HOME/tmp/.conky-running-temp-files + +cd $RUNNING_DIR +if [ $? -ne 0 ]; then + /bin/mkdir -p $RUNNING_DIR + cd $RUNNING_DIR + if [ $? -ne 0 ]; then + echo "$0: FAILED to create and/or enter $RUNNING_DIR: $! ... Giving up!" + exit 1 + fi +fi + sleep 10 /usr/bin/conky -d -c $HOME/Files/Public-Configuration/left.conkyrc sleep 3