After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561535 - Unable to create archive with OpenOffice document using nautilus integration
Unable to create archive with OpenOffice document using nautilus integration
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.24.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-19 15:24 UTC by Sebastien Bacher
Modified: 2008-12-23 11:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Adds "Create Archive..." context item for one selected derived archive (2.79 KB, patch)
2008-12-22 16:57 UTC, Gerard Lommerse
none Details | Review

Description Sebastien Bacher 2008-11-19 15:24:49 UTC
the bug has been opened https://bugs.launchpad.net/bugs/237064

"Steps to reproduce:

 * Find an openoffice document with nautilus
 * Right click on it to try and make an archive out of it
 * Be confused because it says "Extract archive"

Of course, this is because OpenOffice documents are zip files with XML and other jazz in them. However, no user who knows that will likely use the context menu to create an archive. Those users who will do that will just think their desktop is buggy."
Comment 1 Paolo Benvenuto 2008-11-26 09:53:33 UTC
Besides that, the contestual menu doesn't show "create archive"
Comment 2 Gerard Lommerse 2008-12-22 13:42:54 UTC
This is because file-roller checks whether the selected file mime-type is an archive mime-type, or if the mime-type of the selected file is derived from an archive mime-type (this is the case for OpenOffice documents). If so, no "Create Archive..." entry (only the "Extract here") will be listed in the context menu.

I think, for those file mime-types that are *derived* from an archive mime-type, we should list both the "Extract here" as the "Create Archive..." context menu items.
Comment 3 Paolo Benvenuto 2008-12-22 13:45:51 UTC
Gerard Lommerse said: "I think, for those file mime-types that are *derived* from an archive mime-type, we should list both the "Extract here" as the "Create Archive..." context menu items."

That's exactly what we need.
Comment 4 Gerard Lommerse 2008-12-22 16:57:04 UTC
Created attachment 125145 [details] [review]
Adds "Create Archive..." context item for one selected derived archive

Implementation uses "nautilus_file_info_is_mime_type" to check the "is-a" relation (so also checks super type) and "g_content_type_equals" to detect mime-type aliases (aliases have the same content type, but a different mime-type).
Comment 5 Paolo Bacchilega 2008-12-23 11:50:57 UTC
patch applied to trunk, thank you.