On Thu, Jul 23, 1998 at 09:40:55AM +0200, fog@irfmn.mnegri.it wrote:
> On Wed, Jul 22, 1998 at 11:06:00PM -0500, Havoc Pennington wrote:
> > On Wed, 22 Jul 1998, Andreas Jellinghaus wrote:
> > > i hope to find some time, to change kpanel, gnome panel and debian menu
> > > system (and every other system if i can get the source) to use common
> > > directories, nameing etc.
> > A very cool idea.
> Wouldn't be better to write a menu method that builds gnome-panel dir hierarchy
> (I don't know about kpanel) from the standard menus? (Like the other wm-specific
> methods do.)
We have it for KDE:
root@titanic:~# o /etc/menu-methods/kde
#!/usr/sbin/install-menu
compat="menu-1"
!include menu.h
function default($var,$com)= \
"# KDE Config File\n" \
"[KDE Desktop Entry]\n" \
"Type=Application\n" \
"Exec=" $command "\n" \
"Name=" title() "\n" \
$var \
"Comment=" ifelse($longtitle,$longtitle,$title) "\n" \
ifnempty(icon(),"Icon=/usr/X11R6/include/X11/pixmaps/" icon() "\n")
supported
x11= ifelsefile($kdelnk,catfile($kdelnk),default("",$command))
text= ifelsefile($kdelnk,catfile($kdelnk),default("Terminal=1\n",$command))
kde= ifelsefile($kdelnk,catfile($kdelnk),default("",$command))
endsupported
genmenu=parent($section) "/" $title ".kdelnk"
startmenu=""
endmenu=""
#submenutitle=""
rootsection=""
rootprefix="/var/spool/kdeapplnk"
userprefix="/Personal/Debian"
prerun="test -n \""prefix()"\" && rm -rf " prefix() "/* "
#treewalk="c()"
treewalk="M"
preoutput=""
and with little changes for gnome to:
root@titanic:/etc/menu-methods# cat gnome
#!/usr/sbin/install-menu
compat="menu-1"
!include menu.h
function default($var,$com)= \
"# Gnome Config File\n" \
"[Desktop Entry]\n" \
"Name=" title() "\n" \
"Comment=" ifelse($longtitle,$longtitle,$title) "\n" \
"TryExec=" $command "\n" \
"Exec=" $command "\n" \
"Type=Application\n" \
$var \
ifnempty(icon(),"Icon=/usr/X11R6/include/X11/pixmaps/" icon() "\n")
supported
x11= ifelsefile($kdelnk,catfile($kdelnk),default("",$command))
text= ifelsefile($kdelnk,catfile($kdelnk),default("Terminal=1\n",$command))
endsupported
genmenu=parent($section) "/" $title ".desktop"
startmenu=""
endmenu=""
#submenutitle=""
rootsection=""
rootprefix="/usr/share/apps/Debian"
userprefix="/Debian"
prerun="test -n \""prefix()"\" && rm -rf " prefix() "/* "
#treewalk="c()"
treewalk="M"
preoutput=""
Grisu
Attachment:
pgpIjKdIDNfQO.pgp
Description: PGP signature