[Pkg-xfce-devel] Bug#547623: thunar: MS Office .doc treated as plain text document which means OOo doesn't launch rather text editor
John Lindgren
john.lindgren at tds.net
Sun Nov 22 00:37:49 UTC 2009
I did some debugging on this. In short, Thunar does not handle multiple
MIME types being specified for the same file extension. For a given
extension, Thunar seems to use whatever MIME type is listed last
in /usr/share/mime/globs. Relevant code is at
thunar-vfs-mime-legacy.c:660 (Thunar 1.0.1).
There may be extensions which can legitimately be used for more than one
MIME type, I don't know. But in this case, I think the problem is with
the MIME database, not Thunar. That is, .ogg should always be
audio/ogg, and .doc should always be application/msword. Correct me if
I'm wrong.
Patches for the relevant packages attached:
shared-mime-info: /usr/share/mime/packages/freedesktop.org.xml
kdelibs5-data: /usr/share/mime/packages/kde.xml
Peace,
John Lindgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freedesktop.org.xml.diff
Type: text/x-patch
Size: 1175 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20091121/b784f5bb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kde.xml.diff
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20091121/b784f5bb/attachment-0001.bin>
More information about the Pkg-xfce-devel
mailing list