#!/usr/sbin/install-menu
#
# Generates fluxbox menus for all registered applications.
compat="menu-1"

!include menu.h

genmenu="menu"
rootprefix="/etc/X11/fluxbox/"
userprefix=".fluxbox/"
treewalk=(M)

function ltitle()=translate(lang(),title())

supported
    x11=   "  [exec] (" esc(ltitle(), "()") ") {" esc($command, "()") "}\n"
    wm=	   "  [restart] ("  esc(ltitle(), "()")  ")  {" esc($command, "()") "}\n"
    text=  "  [exec] (" esc(ltitle(), "()") ") { xterm -T \"" esc(ltitle(), "()") "\" -e " esc($command, "()") "}\n"
    fluxbox= "[" esc($command, "()") "] (" esc(ltitle(), "()") ")\n"
    fluxexec= "  [exec] (" esc(ltitle(), "()") ") {" esc($command, "()") "}\n"
    fluxstyle= "[stylesdir] ("esc($command, "()") ")\n"
endsupported

preoutput= \
  "\
# Automatically generated file.\n\
# Can be edited with menudrake.\n\
# WARNING!\n\
# If you want to edit this file manually rename it and update ~/.fluxbox/init\n\
\n"

startmenu= " [begin] (Mandriva Linux)\n"
submenutitle= "[submenu] (" esc(ltitle(),"()") ") {" esc($longtitle,"()") "}\n"
endmenu= "[end]\n"
