[Xfce-bugs] [Bug 15295] Thunar offers to extract OpenDocument files

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Apr 18 04:11:02 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15295

Andre Miranda <andreldm at xfce.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andreldm at xfce.org

--- Comment #1 from Andre Miranda <andreldm at xfce.org> ---
It happens because the mime tupe of odt files is
"application/vnd.oasis.opendocument.text" which is a subset of
"application/x-zip".

When TPA runs within Thunar it get the mime type of files and checks against a
list of archive mime types, and it correctly detects that the odt is
(indirectly) a zip file.

However when TPA runs within xfdesktop, it calls xfdesktop's verification
function (xfdesktop_thunarx_file_info_has_mime_type), but that function is
flawed, the parameters of g_content_type_is_a are swapped, the superset is
passed as the type. That's why you don't see "extract here" on desktop.
I'm going to fix this on xfdesktop, so the behavior now will be the same.

Regarding the bug, technically an odt is a zip, but users are more likely
willing to zip odts and not extract them.
I can only think of skipping files with certain mime types.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list