From f6bc909096cfb42bbe1dc44d79a344cf9cb6fcf8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 21 Sep 2002 13:32:26 +0000 Subject: [PATCH] update from Han --- util/fluxbox-generate_menu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu index 72eb27a7..20df9085 100755 --- a/util/fluxbox-generate_menu +++ b/util/fluxbox-generate_menu @@ -443,6 +443,11 @@ append_submenu ${FBSETTINGSMENU} find_it fluxconf append "[exec] (Fluxconf) {fluxconf}" + # if gxmessage exitst use it; else use xmessage + find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" + [ $? -ne 0 ] && \ + find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}" + append_menu_end append "[restart] (${RESTARTITEM})"