Bug#190397: main-menu: please include support for hiding menuitems
Package: main-menu
Version: 0.028 (not installed)
Severity: wishlist
Hi,
please extend main-menu to support hiding of some menuitems.
Some packages are only useful on a specific sub-architecture, so they
shouldn't display in the main-menu. yaboot-installer for example can
only be used on NewWorld PowerMacs, but it will always included in the
ppc image.
So it would nice, if main-menu runs a script (eg debian/isinstallable or
debian/menutest), if this script returns true (or does not exist) show
the menuitem, if now hide it.
I have attached a sample script to make it a little bit more clear:
cat debian/isinstallable
#!/bin/sh
[ `/usr/bin/powerpc-type` = "NewWorld PowerMac" ] && exit 0
exit 1
if main-menu use this script, yaboot-installer will only be available on
ppc newworld macs.
Thanks
Thorsten
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux jacky 2.4.20 #4 Mon Mär 10 08:56:31 CET 2003 i686
Locale: LANG=de_DE, LC_CTYPE=de_DE
Reply to: