Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > media > main > by-pkgid > c3bb096df0d47dca622f5a72013c8b3a > files > 3

fvwm2-2.2.4-11mdk.i586.rpm

#!/usr/sbin/install-menu
compat="menu-1"
!include menu.h

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

function findicon($filename)= \
    ifeqelse($filename, "", "", \
    ifelsefile("/usr/share/icons/mini/" $filename, "/usr/share/icons/mini/" $filename, ""))

supported
  wm=  "+ \"" escfirst(ltitle(), $hotkey,"&") \
    cond_surr(findicon($icon),"%","%") "\" Restart " $command "\n"
  fvwm2module=  "+ \"" escfirst(ltitle(), $hotkey,"&") \
    cond_surr(findicon($icon),"%","%") "\" Module " $command "\n"
  fvwm2=  "+ \"" escfirst(ltitle() ,$hotkey,"&") \
    cond_surr(findicon($icon),"%","%") "\" " $command "\n"
  x11= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
    cond_surr(findicon($icon),"%","%") "\" Exec    " $command  "\n"
  text= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
    cond_surr(findicon($icon),"%","%") "\""  \
    " Exec /usr/bin/X11/xterm -T \"" ltitle() "\" -e " $command "\n"
endsupported

startmenu=   ifeqelse($section, "Mandrake menu", \
             "AddToMenu RootMenu \"Root Menu\" Title", \
             "AddToMenu \"" replacewith($section, " ", "_") "\"" \
	     " \"" ltitle() "\" Title") "\n"
endmenu=     "\n"
submenutitle= "+ \"" escfirst(ltitle() ,$hotkey,"&") \
           cond_surr(findicon($icon),"%","%") "\" PopUp " replacewith($section, " ", "_") "\n"
rootprefix="/etc/X11/fvwm2/"
userprefix="/.fvwm2/"
treewalk="c(m)"
genmenu="menu"
rootsection="Mandrake menu"