Menu-Spec and nested AppDirs

Havoc Pennington hp at redhat.com
Fri May 27 05:06:18 EEST 2005


On Thu, 2005-05-26 at 21:06 +0200, Heinrich Wendel wrote:
> We only have a global pool of AppDirs/DirectoryDirs, not a local one for every 
> menu. AppDirs/DirectoryDirs in Submenus are added at the end of that global 
> pool, so they have priority. To prevent collisions the AppDirs/DirectoryDirs 
> might have a prefix attribute. Additionally AppDirs/DirectoryDirs that are in 
> the Users's folder always have priority instead of the System wide dirs.

I think there are some archived discussions of this. It's basically bad
for the same reason global variables in a program are bad. It messes up
modularity. (Think about a third-party app adding its own submenu, for
example)

Havoc





More information about the xdg mailing list