Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > defa2f8ccd0f1207a82d1be4af7c0382 > files > 3

fvwm2-2.4.14-1mdk.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="/.fvwm/"
treewalk="c(m)"
genmenu="menu"
rootsection="Mandrake menu"