From e8f7da9f99681fe8650cd2c4176dd02749ad3627 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sun, 15 Aug 2004 21:38:22 +0000 Subject: opie-taskbar: grok HOME even when no one is logged in BKrev: 411fd7ce8eQYbRITDPd_wM89rWXSnw --- opie-taskbar/opie-taskbar/opie | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3