Re: [Pkg-xfce-devel] Fixing the shared-mime-info debacle
- To: Yves-Alexis Perez <corsac@debian.org>
- Cc: Josselin Mouette <joss@debian.org>, Francesco Paolo Lovergine <frankie@debian.org>, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Debian Citadel Team <pkg-citadel-devel@lists.alioth.debian.org>, Emilio Pozuelo Monfort <pochu@ubuntu.com>, Filip Van Raemdonck <mechanix@debian.org>, Sebastian Dröge <slomo@debian.org>, Andrew Lee <andrew@linux.org.tw>, Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>, debian-release@lists.debian.org
- Subject: Re: [Pkg-xfce-devel] Fixing the shared-mime-info debacle
- From: "Francesco P. Lovergine" <frankie@debian.org>
- Date: Wed, 13 May 2009 09:49:57 +0200
- Message-id: <20090513074957.GA4310@mithrandir>
- In-reply-to: <1242200297.29926.2.camel@miria>
- References: <1236479243.9813.14.camel@tomoyo> <1242165943.25921.2.camel@tomoyo> <1242196152.9274.3.camel@hidalgo> <1242200297.29926.2.camel@miria>
On Wed, May 13, 2009 at 09:38:17AM +0200, Yves-Alexis Perez wrote:
> On mer, 2009-05-13 at 08:29 +0200, Yves-Alexis Perez wrote:
> > The current mime.cache version, according to the spec, is
> > 1.1 but my /usr/share/mime.cache seems to still be 1.0:
> >
> > hexdump /usr/share/mime/mime.cache |head -n1
> > 0000000 0100 0100 0000 d441 0000 d046 0000 0c56
>
> Uh, oh, wait, the version is on 16 bit, so I indeed have 1.1, which is
> then not used at all by thunar. So we're kind-of safe for the moment,
> but at one point the check should be added to be able to read 1.1 files.
> Though I'm not sure changing the filename is a good idea, and yeah, why
> not putting the version check in the code so apps can use “old” and
> “new” formats?
>
> Cheers,
As already said, the whole format is already versioned by definition, so the proper
fix is - at application level - supporting both formats. Changing file
name is NOT a proper fix, is a bad/pointless workaround for badly written programs.
--
Francesco P. Lovergine
Reply to: