fbpanel
fbpanel copied to clipboard
no-double-entries in menu
User's *.desktop entries are overwriting system's ones. It is based on files' names for specified category. Patch in attachment.
http://standards.freedesktop.org/menu-spec/menu-spec-latest.html says: "When two desktop entries have the same name, the one appearing earlier in the path is used."
The spec is referring to the "Name" key in the file, not the file name. Currently, duplicates are the result of not scanning user directories first and not rejecting additional occurrences of names.
This change does not correctly comply with the freedesktop.org spec since it uses file names. Menu editors which generate local .desktop files with names differing from the system ones will stop working.