Why is evolution launched, while "evowrap --force-shutdown" and "evoterm
--force-shutdown" are running?
case $1 in
JWM) evoterm --force-shutdown
while ps aux | grep "evowrap --force-shutdown" | grep -v grep ; do sleep
1 ; done
while ps aux | grep "evoterm --force-shutdown" | grep -v grep ; do sleep
1 ; done
evolution
exit;;
esac
The complete chain is
$ grep force ~/.jwmrc
<Program label="Evo force shutdown"> evowrap JWM </Program>
IOW "evowrap JWM" to launch the below scripts:
$ cat /usr/local/bin/evoterm
#!/bin/sh
roxterm --maximize -T "evolution $*" -e evowrap $*
exit
$ cat /usr/local/bin/evowrap
#!/bin/sh
case $1 in
JWM) evoterm --force-shutdown
while ps aux | grep "evowrap --force-shutdown" | grep -v grep ; do sleep
1 ; done
while ps aux | grep "evoterm --force-shutdown" | grep -v grep ; do sleep
1 ; done
evolution
exit;;
esac
echo "Launch: evolution $@"
printf "Cancel? [c] "
read pushed_key
case $pushed_key in c) exit;; esac
evolution $@
echo
printf "Push enter to close terminal emulation? "
read pushed_key
exit
_______________________________________________
D-community-offtopic mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/d-community-offtopic