Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44477 - [p7zip] Supported MimeTypes are not listed in the Desktop file

Attached to Project: Arch Linux
Opened by Levon Haykazyan (lyovushka) - Monday, 06 April 2015, 14:24 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 15 April 2015, 21:22 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The file 7zFM.desktop does not list MimeTypes supported by the application. Listing them would allow better integration with modern desktop environments.

Additional info:
* package version(s) - MimeTypes are absent in the version 9.38.1-1
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 15 April 2015, 21:22 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Starting with p7zip 9.38.1-3, we no longer ship the 7zFM graphical frontend.
Comment by Gaetan Bisson (vesath) - Tuesday, 07 April 2015, 19:17 GMT
Please provide a patch against our current desktop file.
Comment by Levon Haykazyan (lyovushka) - Wednesday, 08 April 2015, 22:53 GMT
I tried to create a list of mimetypes based on the list in /usr/share/kde4/services/ServiceMenus/p7zip_extract.desktop, but I got confused. E.g. p7zip_extract.desktop lists the mimetype "application/x-gzip", whereas in /usr/share/mime/types it is listed as "application/gzip". There are others such as "application/x-rar-compressed" vs "application/x-rar" or "application/x-jar" vs "application/x-java-archive".

On one hand if the mimetype is not listed in /usr/share/mime/tyeps then it will never be detected, so listing it in the desktop file is meaningless. On the other hand Wikipedia lists some mimetypes (e.g. "applicatioin/x-gtar") not present in /usr/share/mime/types and maybe the latter should be properly configured. Is there a definitive guide on mimetypes? Or does Arch have a policy on what to use?
Comment by Gaetan Bisson (vesath) - Thursday, 09 April 2015, 01:11 GMT
We have a static mime file provided by https://www.archlinux.org/packages/extra/any/mime-types/ and a dynamic one generated by https://www.archlinux.org/packages/extra/x86_64/shared-mime-info/ ; do not worry too much about these: just add to the desktop files those mimetypes you *know* p7zip can handle effectively. The list does not need to be exhaustive, we can always complement it later.
Comment by Levon Haykazyan (lyovushka) - Thursday, 09 April 2015, 19:09 GMT
Here is a patch I've created based on the desktop file of file-roller and the supported formats listed in www.7-zip.org
   patch (1 KiB)
Comment by Gaetan Bisson (vesath) - Thursday, 09 April 2015, 20:39 GMT
Thanks!
Comment by Gaetan Bisson (vesath) - Wednesday, 15 April 2015, 16:27 GMT
Users have reported that, now that mime types are included in the desktop file, p7zip shows up everywhere in context menus to open various types of archive files, and that this is useless if wxgtk is not installed. Consequently, they have argued that either wxgtk should be made a hard dependency, either those mime types should be removed.

Sincce p7zip is mostly a set of command line tools (with a small GUI), I would really like to keep wxgtk optional. Therefore I am considering removing or commenting out those mime types from the desktop file...
Comment by Levon Haykazyan (lyovushka) - Wednesday, 15 April 2015, 17:44 GMT
Even without mime types, if the desktop file is present, 7zFM will show up in the application menu. It seems to me that without wxgtk, the desktop file shouldn't be installed. I don't know if this is technically possible.
Comment by Gaetan Bisson (vesath) - Wednesday, 15 April 2015, 18:31 GMT
Good point. I cannot think of a good way to hide the desktop file depending on whether wxgtk is installed. Let's just remove the desktop file, then.
Comment by Gaetan Bisson (vesath) - Wednesday, 15 April 2015, 18:43 GMT
My good friend foutrelis has a plan...
Comment by Evangelos Foutras (foutrelis) - Wednesday, 15 April 2015, 18:45 GMT
An evil plan!
Comment by Evangelos Foutras (foutrelis) - Wednesday, 15 April 2015, 21:20 GMT
Change in p7zip 9.38.1-3:

Drop the 7zFM graphical frontend; we don't want to have to depend on
wxgtk and the interface itself is a bit unintuitive. Alternative GUI
archive managers include: file-roller, engrampa, kdeutils-ark.

Loading...