@@ -22,7 +22,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# 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 @@
# 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 @@ unset ETCAPPLNK
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