Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366465 - app-arch/p7zip-9.20.1 installs two desktop files
Summary: app-arch/p7zip-9.20.1 installs two desktop files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 13:35 UTC by Jens Rutschmann
Modified: 2011-10-07 15:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Rutschmann 2011-05-08 13:35:25 UTC
The p7zip distribution tar.bz2 contains two versions of the desktop file providing the service menu entries in file managers like dolphin:
/usr/share/kde4/services/ServiceMenus/p7zip_compress.desktop
/usr/share/kde4/services/ServiceMenus/p7zip_compress2.desktop

Therefore the context menu contains the entries twice.

Both version differ in the values of "ServiceTypes" and "X-KDE-ServiceTypes", which are KDE-specific according to freedesktop.org:
http://standards.freedesktop.org/desktop-entry-spec/latest/apb.html

I tried both files with the other one removed from /usr/share/kde4/services/ServiceMenus and the entries appeared each time only once (no matter which version of the file I used).

Please consider changing the ebuild to install only one of them. I don't know which one is the correct one, though, as Gnome or XFCE may behave differently.

Thanks.

Diff:

jens:/usr/share/kde4/services/ServiceMenus> diff -u p7zip_compress.desktop p7zip_compress2.desktop
--- p7zip_compress.desktop      2011-04-03 15:39:06.000000000 +0200
+++ p7zip_compress2.desktop    2011-04-03 15:39:06.000000000 +0200
@@ -1,12 +1,12 @@
 [Desktop Entry]
 Type=Service
-ServiceTypes=inode/directory
+ServiceTypes=all/allfiles
 MimeType=all/all;
 Actions=CompressDialog;Compress7z;CompressZip;extractHere;ExtractSubdir;ExtractTo;test;Benchmark;
 X-KDE-Priority=TopLevel
 X-KDE-Submenu=7-Zip
 X-KDE-Icon=p7zip
-X-KDE-ServiceTypes=KonqPopupMenu/Plugin,inode/directory
+X-KDE-ServiceTypes=KonqPopupMenu/Plugin
 
 [Desktop Action CompressDialog]
 Name=Add to Archive ...
Comment 1 Nikos Chantziaras 2011-07-19 11:40:44 UTC
Yes, only one desktop file should be installed. The current menu is quite huge with everything duplicated. p7zip_compress.desktop is the one that should be used, since it's supposed to work everywhere, not only KDE.

Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3371226&group_id=111810&atid=660493
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-10-07 15:27:17 UTC
+  07 Oct 2011; Justin Lecher <jlec@gentoo.org> p7zip-9.20.1.ebuild,
+  metadata.xml:
+  Do only install one .desktop file for compression, #366465
+