summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-04-08 22:07:11 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-04-08 22:07:11 +0200
commit31f0417d93ece43cbddb8ada12301f8112d5e351 (patch)
treec0911acab353baa424a7dead2196bc07e640182a
parentc19ef714b029977a2113f9b79bc76cfab512ae28 (diff)
sorry i was wrong in the previous commit. restoring first fix...
-rw-r--r--src/core/libs/lib-ui.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index 4b854e3..c039a71 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -455,7 +455,18 @@ _dia_follow_progress ()
{
title=$1
logfile=$2
- FOLLOW_PID=`_dia_dialog --title "$1" --no-kill --tailboxbg "$2" 0 0 2>&1 >/dev/null | head -n 1`
+
+ _dia_dialog --title "$1" --no-kill --tailboxbg "$2" 0 0 2>$RUNTIME_DIR/aif-follow-pid
+ FOLLOW_PID=`cat $RUNTIME_DIR/aif-follow-pid`
+ rm $RUNTIME_DIR/aif-follow-pid
+
+ # I wish something like this would work. anyone who can explain me why it doesn't get's to be aif contributor of the month.
+ # FOLLOW_PID=`_dia_dialog --title "$1" --no-kill --tailboxbg "$2" 0 0 2>&1 >/dev/null | head -n 1`
+
+ # Also this doesn't work:
+ # _dia_dialog --title "$1" --no-kill --tailboxbg "$2" 0 0 &>/dev/null &
+ # FOLLOW_PID=$!
+
}