Right-clicking on a .odt or .ods file in Thunar does not show the "Create Archive..." entry. The entries for extracting archives are shown instead. This bug is not present when testing with xfdesktop, so I assume that thunar-archive-plugin is not to blame.
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.
Andre Miranda referenced this bugreport in commit 90631671ff1ff92ac6035d0dd3b7c9c6f3bdc88f Fix has_mime_type implementation (Bug #15295) https://git.xfce.org/xfce/xfdesktop/commit?id=90631671ff1ff92ac6035d0dd3b7c9c6f3bdc88f
Created attachment 8418 tap.diff Something like this, but I don't want to include all 15 mime types[1] for each open document format, not to mention docx, xlsx, pptx, jar... Ideally there are supersets, but I couldn't find any reference on this, maybe this superset is just a glib concept. 1 - https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
I checked what Nautilus, Nemo and Caja do in this case. They simply allow the user to extract an archive, or compress it again. Both options are offered. My vote would go for doing the same in TAP.
Created attachment 8525 tap-alway-create.diff (In reply to Theo Linkspfeifer from comment #4) > I checked what Nautilus, Nemo and Caja do in this case. They simply allow > the user to extract an archive, or compress it again. Both options are > offered. In this case the fix is much more simpler, please check (I mean test) the attached patch, it just gets rid of an if.
Tested and it works.
Andre Miranda referenced this bugreport in commit fa3ad98d904909267501c0dd05e423bd7873835d Allow zip files (i.e. odt, docx...) to be compressed (Bug #15295) https://git.xfce.org/thunar-plugins/thunar-archive-plugin/commit?id=fa3ad98d904909267501c0dd05e423bd7873835d
Thanks for reporting, proposing a fix and testing :)