! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Duplicate menu entries for some GTK/Gnome apps with KDE installed
Status:
RESOLVED: WONTFIX
Product:
Xfdesktop
Component:
General

Comments

Description Andrew Conkling 2005-05-10 02:30:03 CEST
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?
Comment 1 Jasper Huijsmans editbugs 2005-05-12 13:55:19 CEST
(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/ .
Comment 2 Brian J. Tarricone (not reading bugmail) 2005-05-12 17:38:07 CEST
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.
Comment 3 Andrew Conkling 2005-05-14 00:34:21 CEST
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
Comment 4 Brian J. Tarricone (not reading bugmail) 2006-10-17 21:02:07 CEST
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...

Bug #947

Reported by:
Andrew Conkling
Reported on: 2005-05-10
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Attachments

Additional information