summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-12-28 16:21:08 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-12-28 16:21:12 +0100
commita18dfef8bff262d957e312bd55c36cf74d4eba63 (patch)
tree379fc3ee614d879cbdd94c1c7e3d9ffc65ddfa84
parent3cee8e663a4da69456b493acccbda27064209a35 (diff)
create $LIBUI_TMP_DIR on startup
$LIBUI_TMP_DIR might not exist. Note that the mkdir could fail, in case the default libui-sh settings (which use /tmp) don't work on the target system, in that case, it's up to the user to init with a different directory spec, and if he will see issues sooner or later.
-rw-r--r--libui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/libui.sh b/libui.sh
index 2056ccd..3221c21 100644
--- a/libui.sh
+++ b/libui.sh
@@ -22,6 +22,7 @@ libui_sh_init ()
LIBUI_TMP_DIR=/tmp
if [ -n "$2" ]; then
LIBUI_TMP_DIR=$2
+ mkdir -p $LIBUI_TMP_DIR 2>/dev/null
fi
LIBUI_LOG=0
if [ -n "$3" ]; then