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.
This commit is contained in:
Bradley M. Kuhn 2013-09-01 12:54:19 -04:00
parent 3527cdaa5a
commit 7f0caca15a

View file

@ -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