Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 607b3df6a8891cc4158b46e01b0ea96c > files > 6

blackbox-0.65.0-4mdk.src.rpm

#!/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="/Mandrake"

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\Mandrake MENU\n\n"
postoutput= \
   "\Mandrake END\n"

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