thunar doesn't recognize *.doc mimetype

Bug #510583 reported by Simon Steinbeiß
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thunar File Manager
Won't Fix
thunar (Debian)
Fix Released
thunar (Ubuntu)
Fix Released

Bug Description

Binary package hint: thunar

i expect thunar to treat different filetypes differently/accordingly.

what happens is: thunar doesn't recognize docs, which leads to either a text-editor trying to open doc-documents or e.g. openoffice opening all textfiles. so the problem is that thunar doesn't distinguish between the different mimes.

i found the solution (or at least a dirty-hack-workaround) here:

in short: delete (or uncomment) the line containing "<glob pattern="*.doc"/>" in "/usr/share/mime/packages/kde.xml"

i know this has been a problem since jaunty and it still exists in karmic (which i'm now using). a fix would be most welcome.

using: xubuntu 9.10, thunar 1.0.1-1ubuntu2

Tags: resolved-4.8
Revision history for this message
In , Yves-Alexis Perez (corsac) wrote :


it seems that the MIME handling in Thunar (1.0.1) might have problems when there are multiple mime types designated by only one extension. Basically it seems to take the latest one present in /usr/share/mime/globs which might usually be ok but breaks in some cases (like in debian bug #547623)

Problems seems to be located at thunar-vfs-mime-legacy.c:660

Not sure how gio behaves so it might be worth waiting for the transition, but it'd still be nice to fix to have it fixed in 1.0


Changed in thunar (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in thunar (Debian):
status: Unknown → Confirmed
tags: added: resolved-4.8
Revision history for this message
In , Yves-Alexis Perez (corsac) wrote :

Hmhh, any news on this? :) (I know you're short on time, it's just a friendly ping :p)

Revision history for this message
In , David Faure (faure) wrote :

gio and kio do it by following the shared-mime-info spec ;)
It says, under "Recommended checking order" :

If the glob matching fails or results in multiple conflicting mimetypes, read the contents of the file and do magic sniffing on it. If no magic rule matches the data (or if the content is not available), use the default type of application/octet-stream for binary data, or text/plain for textual data. If there was no glob match, use the magic match as the result.

If any of the mimetypes resulting from a glob match is equal to or a subclass of the result from the magic sniffing, use this as the result. This allows us for example to distinguish text files called "foo.doc" from MS-Word files with the same name, as the magic match for the MS-Word file would be application/x-ole-storage which the MS-Word type inherits.

Revision history for this message
Simon Steinbeiß (ochosi) wrote :

this bug seems to be resolved in xubuntu maverick beta.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.4 KiB)

This bug was fixed in the package thunar - 1.1.4-0ubuntu1

thunar (1.1.4-0ubuntu1) natty; urgency=low

  * Upload to natty (pkg-xfce svn r4407), remaining Ubuntu changes:
    - debian/control:
      + use our Vcs-* fields
    - debian/patches:
      + xubuntu-fix-desktop-files.patch: various fixes to desktop files:
        . make thunar and thunar-bulk-rename appear under Accessories not System
        . make destop-file-validate happy (remove 'Application;')
        . add 'OnlyShowIn="XFCE;"' to Thunar-folder-handler.desktop so that
          GNOME defaults to Nautilus and not Thunar
        . hide Bulk Rename from the menu LP: #441278.
  * Partially revert pkg-xfce svn r4189 to build the trash panel plugin again,
    as there is xfce4-panel 4.7.x in natty.
  * debian/patches/xubuntu-fix-desktop-files.patch: refreshed to apply cleanly.

thunar (1.1.4-1) UNRELEASED; urgency=low

  [ Yves-Alexis Perez ]
  * New upstream release. Closes: #576090
    - add support for GIO. lp: #530160, Closes: #552128
    - trash applet for panel does not scale font lp: #58549
    - add support for audio cd 'mount'. lp: #159627
    - add support for smb://, ftp:// uris. lp: #277206, #601321
    - i/o errors on slow filesystems. lp: #504806
    - .ogg files are presented as video files lp: #512864
    - thunar doesn't recognize *.doc mimetype lp: #510583, Closes: #547623
  * debian/rules:
    - stop messing with POSIX_MADV since thunar-vfs is gone.
    - drop enable-final and disable-gnome-thumbnailers from configure flags.
    - drop thunar trash applet (tpa) things for now.
    - configure *FLAGS using dpkg-buildflags.
    - link with --as-needed, -z,defs and -O1.
    - change thunarx libname to 2 in chrpath call.
    - rename lib dir from thunar to Thunar.
    - ignore thunarx plugins in dh_makeshlibs.
    - add hardening flags to {C,LD}FLAGS.
  * debian/patches:
    - 01_thunar-help-directory dropped, not useful anymore.
    - 02_thunar-icon-naming-spec-compliance refreshed.
    - 03_thunar-window-maximize dropped, useless as well.
    - 05_fix-crash-drag-gdk-none.patch: dropped also.
    - 06_fix-sidepane-width.patch: dropped, included upstream.
    - 07_update-cursor-on-delete.patch: dropped.
    - 08_refilter-tree-hidden-dir.patch: dropped.
  * debian/control:
    - bump build-dep on exo (0.5.1).
    - add build-dep on libxfce4ui (4.7.1).
    - rename libthunar-vfs package to libthunarx since thunar-vfs has been
    - add recommends on tumbler.
    - temporarily drop xfce4-panel build-dep until we have a stable situation.
    - add build-dep on hardening-includes.
  * drop libthunar-vfs maintainer scripts and lintian overrides.
  * debian/watch updated.
  * debian/thunar.install:
    - drop tpa for now.
    - rename lib dir from thunar to Thunar
  * debian/README.Debian: update help snippet for device mounts, recommend

  [ Lionel Le Folgoc ]
  * debian/control:
    - update libthunarx-2-dev dep on libexo-0.3-dev to libexo-1-de...


Changed in thunar (Ubuntu):
status: Triaged → Fix Released
Changed in thunar (Debian):
status: Confirmed → Fix Released
Revision history for this message
In , 8-nick (8-nick) wrote :

Close bug reports of archived products.

Changed in thunar:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.