all repos — fluxbox @ fef1df762f9316c753d914e6b22989f5f8923b97

custom fork of the fluxbox windowmanager

fix for multi desktop entries in menu files
rathnor rathnor
commit

fef1df762f9316c753d914e6b22989f5f8923b97

parent

6bbc5c43ca469d70710887e3b7ae5b5dbecb1ca8

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M util/fluxbox-generate_menuutil/fluxbox-generate_menu

@@ -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.45 2003/08/02 15:08:06 rathnor Exp $ +# $Id: fluxbox-generate_menu,v 1.46 2003/08/03 04:12:03 rathnor Exp $ # # Portability notes:

@@ -142,8 +142,8 @@ }

menu_entry() { if [ -f "$1" ]; then - append "[exec] (`grep '^[ ]*Name=' \"$1\" | cut -d = -f 2`) \ - {`grep '^[ ]*Exec=' \"$1\" | cut -d = -f 2`}" + append "[exec] (`grep '^[ ]*Name=' \"$1\" | head -1 | cut -d = -f 2`) \ + {`grep '^[ ]*Exec=' \"$1\" | head -1 | cut -d = -f 2`}" fi }

@@ -863,7 +863,7 @@

# We'll only use this once ETCAPPLNK=/etc/X11/applnk # gnome menu -if [ -n "${GNOMEMENU}" ]; then +if [ "${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 [ -n "${KDEMENU}" ]; then +if [ -d "${KDE_PREFIX}/share/applnk/" -a "${KDEMENU}" ]; then append_submenu "${KDEMENUTEXT}" recurse_dir_menu "${KDE_PREFIX}/share/applnk" "$HOME/.kde/share/applnk" ${ETCAPPLNK} append_menu_end