"Eric G . Miller" wrote:
> 
> On Sat, Nov 20, 1999 at 11:44:50PM -0600, Kent West wrote:
> > Can anyone point me to a HOWTO for adding a menu item to Icewm
> > (preferably written in plain-speak)?
> Don't stop with Icewm! After all, what if you want to use Enlightenment
> tomorrow? The best way is to use Debian's menu system. There are some
> docs in /usr/doc/menu. Here's an example I put in /etc/menu:
> 
> file = staroffice
> 
> ?package(local.staroffice):\
>         needs="x11"\
>         section="Apps/Local/StarOffice"\
>         title="StarOffice 5.1"\
>         command="/usr/local/Office51/bin/soffice"\
>         icon="/usr/local/Office51/s_soffice.xpm"
> 
> ?package(local.staroffice):\
>         needs="x11"\
>         section="Apps/Local/StarOffice"\
>         title="Setup"\
>         command="/usr/local/Office51/bin/setup"\
>         icon="/usr/local/Office51/s_soffice.xpm"
> 
> The local.package in ?package() tells the menu system it's installed,
> even if it's not in the dpkg database. Here, I have both the path to the
> setup program and the executable for staroffice5.1a. Simply run
> update-menus after putting a new file in /etc/menu.
> --
> +----------------------------------------------------+
> | Eric G. Miller                        egm2@jps.net |
> | GnuPG public key: http://www.jps.net/egm2/gpg.asc  |
> +----------------------------------------------------+

That was the info I needed. I also had to figure out that I had to
restart my wm, but that was no problem.

I already had the files I needed in /usr/lib/menu (gnome-card-games) for
gnome-freecell, but ever since I installed some little something the
other day the menu item had disappeared; adding "local." allowed me to
get the menu item back. (It should be in the dpkg database, but
apparently trying to mix packages from stable and unstable is not a good
idea :-(  )

Thanks!

Reply via email to