tkill the status tray when closed from cli - tomb - the crypto undertaker (HTM) git clone git://parazyd.org/tomb.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 85b01ddbcfb297f6236ad4b9c95c6fee22bbe8bd (DIR) parent ccdd2aa4d6a1d798e6cd4d53ed38d34cd4dc0743 (HTM) Author: Jaromil <jaromil@dyne.org> Date: Sun, 15 May 2011 20:11:01 +0200 kill the status tray when closed from cli Diffstat: M src/tomb | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- (DIR) diff --git a/src/tomb b/src/tomb t@@ -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 }