tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 85b01ddbcfb297f6236ad4b9c95c6fee22bbe8bd
parent ccdd2aa4d6a1d798e6cd4d53ed38d34cd4dc0743
Author: Jaromil <jaromil@dyne.org>
Date:   Sun, 15 May 2011 20:11:01 +0200

kill the status tray when closed from cli

Diffstat:
Msrc/tomb | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/tomb b/src/tomb @@ -833,6 +833,12 @@ umount_tomb() { loopdev=`cut -d '.' -f4 <<< "$mapper"` losetup -d "/dev/$loopdev" + # kill the status tray widget if still present + # this makes the widget disappear when closing tomb from cli + awkmapper=`sed 's:\/:\\\/:g' <<< $mapper` + statustray_pid=`ps ax | awk "/tomb-status $awkmapper/"' {print $1} '` + kill ${statustray_pid} + notice "Tomb $tombname closed: your bones will rest in peace." return 0 }