[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is menu orphaned? (Was: Debian Menu transition status)



On Sun, 9 Dec 2007, Bill Allombert wrote:

On Wed, Dec 05, 2007 at 11:10:29AM +0100, Andreas Tille wrote:
On Wed, 5 Dec 2007, Bill Allombert wrote:

Actually this is not true: You can just add
!C menu-1
to the start of each files (or each menu-1 files if you prefer)
before concatening them.
Menu change format each time it see a !C request, even inside a file.

OK, this hint (is it documented somewhere?) would probably help

Not yet, though you are welcome to provide a patch for the menu
manual.

Before I think about a patch I wonder whether this is really
working for any window manager.   I changed cdd-menu accordingly
which you can see at

    http://svn.debian.org/wsvn/cdd/cdd/trunk/cdd/share/menu/cdd-menu?op=diff&rev=0&sc=0

If you call /usr/share/menu/cdd-menu as user and have med-bio
installed, you get an output like this:


!C menu-1
?package(arb):needs="X11" section="Med/Biology" \
  title="Arb"  icon="/usr/share/arb/arb.xpm" command="/usr/bin/arb"


!C menu-1
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/bl2seq" needs="X11" \
        section="Med/Biology/Blast2" title="bl2seq" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/blast2" needs="X11" \
        section="Med/Biology/Blast2" title="blast2" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/blastall" needs="X11" \
        section="Med/Biology/Blast2" title="blastall" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/blastcl3" needs="X11" \
        section="Med/Biology/Blast2" title="blastcl3" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/blastclust" needs="X11" \
        section="Med/Biology/Blast2" title="blastclust" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/blastpgp" needs="X11" \
        section="Med/Biology/Blast2" title="blastpgp" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/copymat" needs="X11" \
        section="Med/Biology/Blast2" title="copymat" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/fastacmd" needs="X11" \
        section="Med/Biology/Blast2" title="fastacmd" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/formatdb" needs="X11" \
        section="Med/Biology/Blast2" title="formatdb" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/impala" needs="X11" \
        section="Med/Biology/Blast2" title="impala" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/makemat" needs="X11" \
        section="Med/Biology/Blast2" title="makemat" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/megablast" needs="X11" \
        section="Med/Biology/Blast2" title="megablast" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/rpsblast" needs="X11" \
        section="Med/Biology/Blast2" title="rpsblast" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"
?package(libvibrant6):command="/usr/bin/vibrate /usr/bin/seedtop" needs="X11" \
        section="Med/Biology/Blast2" title="seedtop" hints="Biology" icon="/usr/share/pixmaps/ncbilogo.xpm"

!C menu-1
?package(boxshade): needs="text" \
        section="Med/Biology" \
        title="Boxshade" hints="Pretty-printing of multiple sequence alignments" \
        command="sensible-pager /usr/share/doc/med-bio/boxshade.txt"
!C menu-1
?package(boxshade):\
  needs="text"\
  section="Med/Biology"\
  title="Boxshade"\
  command="/usr/bin/boxshade"

...


This leads to the wanted user menu in Xfce4 (unchanged behaviour as before).
Unfortunately fvwm has no menu and if I start sawfish I just get

   Unbound variable: debian-menu

and no Debian menu at all.
(I'm doing my tests in
     Xephyr -ac :2
     export DISPLAY=:2
)

Is there any reason why the undocumented trick you suggested works only for
one out of three tested environments or did I missed something?

Kind regards

         Andreas.

--
http://fam-tille.de



Reply to: