Dynamic menu plugins

George jirka at 5z.com
Fri Sep 12 19:58:50 EEST 2003

On Fri, Sep 12, 2003 at 02:52:22PM +0100, Mike Hearn wrote:
> It's not a totally critical need, it *is* possible to simply hook up the
> IShellLink API to generating .desktop files, but it's a bit harder to do
> things with it once you have gone past that point - for instance
> uninstallers typically just delete the file, the OS is never notified
> explicitly that the menu link has been removed, so there's no
> opportunity to synchronize with the linux menus.

You could use a category like X-Wine-ControlPanel, then make a subdir in the
tree that queries for those.  Then manage the .desktops on the fly and always
have them have X-Wine-ControlPanel category included.  The deletion of files
can be handled by FAM to keep the .desktop files in sync.

You really have to do something similar for the plugin anyway, so perhaps
any plugin type thing is not as useful anyway.  The above you can do with
current implementations without having to do any extension of the spec,
plus I think it's cleaner.


George <jirka at 5z.com>
   A conference is a gathering of important people who singly can do 
   nothing but together can decide that nothing can be done.
                       -- Fred Allen

More information about the xdg mailing list