On Tue, Dec 11, 2007 at 05:42:27PM +0100, Andreas Tille wrote: > On Sun, 9 Dec 2007, Bill Allombert wrote: > 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
Your check 'grep -q -c ^!C' is wrong and useless since it might catch !C in the middle of the file. It is simpler to always add !C menu-1 inconditionnally. > 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" Thare are two missing '\', one at the end of the fisrt line, on at the end of the third line (unless you reformatted it). > 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 You probably have fvwm and/or sawfish misconfigured. You can use 'update-menu --stdout' to see what are the menu entries from the point of view of menu, and compare the output before and after. Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]