I have some duplicate menu entries in Xfce after installing KDE--Gimp, Firefox, gVim. Looking at the .desktop files for each, there seem to be some duplicates, but the common ones are: /usr/share/applications/*.desktop /usr/share/apps/kappfinder/category/*.desktop Seems the kappfinder package is creating the latter .desktop files (at least in Ubuntu), so I'll investigate that further; maybe there's a good reason for that? In the meantime, why is xfdesktop looking in that dir?
(In reply to comment #0) > I have some duplicate menu entries in Xfce after installing KDE--Gimp, Firefox, > gVim. Looking at the .desktop files for each, there seem to be some duplicates, > but the common ones are: > /usr/share/applications/*.desktop > /usr/share/apps/kappfinder/category/*.desktop > > Seems the kappfinder package is creating the latter .desktop files (at least in > Ubuntu), so I'll investigate that further; maybe there's a good reason for that? > In the meantime, why is xfdesktop looking in that dir? I would expect there to be a symlink to a kde-specific applications directory, that would cause xfdesktop to see both. Maybe something called 'applnk'? xfdesktop does check certain kde legacy dirs, something like $KDEDIR/share/applnk/ .
Ok, there's only one (legitimate) reason that xfdesktop would be including the same entry twice: if the 'desktop-id' (defined as the filename, without leading pathname, of the .desktop file, without the '.desktop' extension) is different for the two files. If that's the case, this is intended spec-following behavior, and a bug needs to be filed with KDE. If in fact the desktop-ids are the same for the multiple files, and they're still getting added multiple times, then that's an xfdesktop bug. That's why (in #xfce) I asked for specific file names, which you did not provide.
OK, OK, sorry about the lack of specifics. Sure enough, some of the cases I'm seeing involve different desktop-ids, so I'll (also) file a bug with KDE (kappfinder specifically). However, I do see some with the same ID, as far as I can tell: /usr/share/apps/kappfinder/apps/Editors/gvim.desktop /usr/share/applications/gvim.desktop /usr/share/apps/kappfinder/apps/Graphics/inkscape.desktop /usr/share/applications/inkscape.desktop /usr/share/apps/kappfinder/apps/Internet/mozilla-firefox.desktop /usr/share/applications/mozilla-firefox.desktop /usr/share/apps/kappfinder/apps/Internet/xchat.desktop /usr/share/applications/xchat.desktop
Desktop-id is actually the entire thing. If the root of the tree is /foo/bar, then a .desktop file at /foo/bar/baz/quux.desktop has a desktop-id of 'baz-quux'. Either way, I don't think this is going to get fixed (unless that patch from Olivier a few months ago fixed this too). Wait for the fd.o-compliant menu implementation in 4.6...