summaryrefslogtreecommitdiff
path: root/opie-taskbar
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-08-15 21:38:22 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-08-15 21:38:22 +0000
commite8f7da9f99681fe8650cd2c4176dd02749ad3627 (patch)
treebfa3cdf6f23295bbf7bf0c9cb193c4ba997adbd5 /opie-taskbar
parent3c822fb10dac6fd6512f6327fa4aa12a516edaca (diff)
opie-taskbar: grok HOME even when no one is logged in
BKrev: 411fd7ce8eQYbRITDPd_wM89rWXSnw
Diffstat (limited to 'opie-taskbar')
-rw-r--r--opie-taskbar/opie-taskbar/opie6
1 files changed, 5 insertions, 1 deletions
diff --git a/opie-taskbar/opie-taskbar/opie b/opie-taskbar/opie-taskbar/opie
index 1197d815c4..f588a22f90 100644
--- a/opie-taskbar/opie-taskbar/opie
+++ b/opie-taskbar/opie-taskbar/opie
@@ -1,5 +1,8 @@
#!/bin/sh
#
+[ -z $LOGNAME ] && export LOGNAME=root && export HOME=/root
+[ -z $HOME ] && export HOME=/$LOGNAME
+
export QTDIR=/opt/QtPalmtop
export OPIEDIR=/opt/QtPalmtop
export QPEDIR=/opt/QtPalmtop
@@ -34,7 +37,8 @@ fi
if [ ! -x "$HOME/Settings/qpe.conf" ] ; then
echo "Copying default qpe.conf into $HOME/Settings/"
- cp -f $OPIEDIR/etc/skel/qpe.conf $HOME/Settings/qpe.conf
+ mkdir -p $HOME/Settings/
+ cat $OPIEDIR/etc/skel/qpe.conf >$HOME/Settings/qpe.conf
fi
case $1 in