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

!include menu.h

genmenu="blackbox-menu"
rootprefix="/etc/X11/blackbox/"
userprefix=""
treewalk=(M)
#rootsection="/ALTLinux"

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"
    blackbox= "[" esc($command, "()") "] (" esc(ltitle(), "()") ")\n"
endsupported

preoutput= \
  "# Automatically generated file. Do not edit.\n\n\n\ALTLinux MENU\n\n"
postoutput= \
   "\ALTLinux END\n"

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

