GNOME Bugzilla – Bug 561535
Unable to create archive with OpenOffice document using nautilus integration
Last modified: 2008-12-23 11:50:57 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."
Besides that, the contestual menu doesn't show "create archive"
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.
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.
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).
patch applied to trunk, thank you.