Bug#517768: can't reproducing mime.cache problem.

Andreas Henriksson andreas at fatal.se
Thu Sep 16 08:47:42 UTC 2010


On Wed, Sep 15, 2010 at 04:40:32PM +0200, Josselin Mouette wrote:
> Le mercredi 15 septembre 2010 à 16:32 +0200, Andreas Henriksson a
> écrit :
> > I've tried to understand the problem in the bug report at
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517768
> 
> Thanks for your interest.

:)

> 
> > I don't know where to start, if someone could suggest a suitable
> > testcase that would be great!
> > 
> > So far I've found out that the error message originally quoted
> > in the bug report is no longer part of nautilus (it was dropped
> > in the gnomevfs->gio switch a long time ago).
> 
> Nope, the code is still here in nautilus.

Feel free to point out where... I can't find it.

> 
> > I've also installed Lenny + gnome-desktop-environment, played
> > around a bit with an avi test video, upgraded to squeeze.
> > This did not result in any problems opening the file.
> 
> You don’t just need to play around a bit with a video, you need to do
> something that creates a ~/.local/share/mime/mime.cache file. This
> involves e.g. creating a new MIME type.

Thanks for this hint. Here's what I've found:

I started with a clean Lenny install + gnome-desktop-environment pulled in.
I then registered a custom mime type on my user as described in
http://library.gnome.org/admin/system-admin-guide/stable/mimetypes-modifying.html.en
(See attached file, which I put in ~/.local/share/mime/packages/ and then
ran "update-mime-database ~/.local/share/mime/" to generate the mime.cache.)
I verified with gnomevfs-info ~/Desktop/foo.abc that my test file
was actually detected as the new mime type text/x-abc.
I upgraded to squeeze...
After the complete upgrade gnomevfs-info now told me my file was of type
application/octet-stream rather then my custom type.
Double-clicking my test video file opened the movie player without problems,
no error message about mime mismatches or anything.

To get my custom mime type back I had to manually invoke
"update-mime-database ~/.local/share/mime/" and then
foo.abc was again detected as text/x-abc by gnomevfs-info.

It seems the mime cache is now simply ignored if it's in the old
format.

> 
> > I wonder if this problem might have only been a concern for
> > testing->testing upgrades back in 2009....
> 
> It was a problem with lenny→squeeze upgrades back in 2009, but it might
> simply have been fixed upstream.

Semi-fixed it seems. I wonder where this leaves us now...

-- 
Andreas Henriksson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Overrides.xml
Type: application/xml
Size: 324 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20100916/9895a627/attachment-0001.xml>


More information about the pkg-gnome-maintainers mailing list