On Thu, Apr 21, 2005 at 09:05:42PM -0400, Christopher Martin wrote: > Package: menu > Tags: patch > > Hello, > > Currently, for packages (such as KDE's) that use menu-xdg to make the Debian > menu available, uninstalling menu does not cause the Debian menu to > disappear from view, because the hierarchy of files under /var/lib/menu-xdg > generated when, say, update-menus is run, remains present. > > Of course, without menu installed, the Debian menu users are presented with > becomes more and more out of date.
Hello Christopher, I think you ask for 2 things: 1) A fix for bug #81495 "menu: should allow to remove generated menufiles" 2) A change to menu prerm to automatically remove menu using 1). How to implement 1) ? As a see it: i) we add an option --remove to update-menu that will call the menu-methods with the '--remove' flag. ii) we add an option '--remove' to install-menu that cause it to remove the menu intead of creating. How this is done exactly has to be defined. One way is to add a config option 'remove_menu=' in the menu-methods taht contains a shell expression to run to remove the menu, like remove_menu="rm -f /var/lib/menu-xdg" At this point, 2) would be just a matter of running update-menus --remove in the menu prerm script. However it would be nice if --remove was smart enough to handle window managers that only use a single menu file without needing a remove_menu option. I look forward to the patch the tag promise! 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]