! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar only supports mime cache version 1.0
Status:
RESOLVED: WONTFIX
Product:
Thunar-vfs
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2009-05-22 06:33:05 CEST
Hey,

it seems that, atm, Thunar only supports the 1.0 version of mime.cache format. There's a check in thunar-vfs/thunar-vfs-mime-cache.c:

  /* check that we actually support the file version */
  if (CACHE_READ16 (buffer, 0) != CACHE_MAJOR_VERSION || CACHE_READ16 (buffer, 2) != CACHE_MINOR_VERSION)
    {
      munmap (buffer, stat.st_size);
      goto done;
    }


with:

#define CACHE_MAJOR_VERSION (1)
#define CACHE_MINOR_VERSION (0)

This is actually a good thing, since 1.1 mime.cache format is incompatible with 1.1 (that leaded to problems in GNOME stuff for example) but that means that, now that the format has been switched (at least on debian since recent shared-mime-info upload, but I guess we're not the only ones), Thunar won't use the mime.cache infos at all.

I'm not sure how bad it is, performances etc. (I didn't really notice, to be honest) but sure it'd be nice to support the 1.1 version.

Cheers,
Comment 1 Jannis Pohlmann editbugs 2009-05-22 09:53:41 CEST
Do you happen to know which version(s) GIO supports? That's the only thing that really matters to me, personally. The next version of Thunar will use whatever GIO provides.
Comment 2 Jannis Pohlmann editbugs 2010-10-19 16:05:48 CEST
Need more info on this one. Yves-Alexis, your turn. ;)
Comment 3 Yves-Alexis Perez editbugs 2010-10-19 21:50:39 CEST
Thanks to Josselin Mouette : http://git.gnome.org/browse/glib/tree/gio/xdgmime/xdgmimecache.c?h=glib-2-24#n74

Seems that gio supports between 1.1 and 1.2.
Comment 4 Nick Schermer editbugs 2014-12-03 09:19:49 CET
Close bug reports of archived products.

Bug #5383

Reported by:
Yves-Alexis Perez
Reported on: 2009-05-22
Last modified on: 2014-12-03

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information