From 6bbc5c43ca469d70710887e3b7ae5b5dbecb1ca8 Mon Sep 17 00:00:00 2001
From: rathnor <rathnor>
Date: Sat, 2 Aug 2003 15:08:06 +0000
Subject: tweak

---
 util/fluxbox-generate_menu | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu
index 1021aae..9eebfd2 100755
--- a/util/fluxbox-generate_menu
+++ b/util/fluxbox-generate_menu
@@ -22,7 +22,7 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 #
-# $Id: fluxbox-generate_menu,v 1.44 2003/08/02 14:54:05 rathnor Exp $
+# $Id: fluxbox-generate_menu,v 1.45 2003/08/02 15:08:06 rathnor Exp $
 
 #
 # Portability notes:
@@ -863,7 +863,7 @@ append_menu_end
 # We'll only use this once
 ETCAPPLNK=/etc/X11/applnk
 # gnome menu
-if [ "${GNOMEMENU}" ]; then
+if [ -n "${GNOMEMENU}" ]; then
     append_submenu "${GNOMEMENUTEXT}"
     recurse_dir_menu "${GNOME_PREFIX}/share/gnome/apps" "$HOME/.gnome/apps" ${ETCAPPLNK}
     append_menu_end
@@ -871,7 +871,7 @@ if [ "${GNOMEMENU}" ]; then
 fi
 
 # kde submenu
-if [ -d "${KDE_PREFIX}/share/applnk/" -a "${KDEMENU}" ]; then
+if [ -n "${KDEMENU}" ]; then
     append_submenu "${KDEMENUTEXT}"
     recurse_dir_menu "${KDE_PREFIX}/share/applnk" "$HOME/.kde/share/applnk" ${ETCAPPLNK}
     append_menu_end
-- 
cgit v0.11.2