Re: Weired icon <-> MIME type association
- From: Alexander Larsson <alexl redhat com>
- To: Daniel Leidert <daniel leidert spam gmx net>
- Cc: ml_gnome-vfs <gnome-vfs-list gnome org>, ml_gnome-nautilus <nautilus-list gnome org>
- Subject: Re: Weired icon <-> MIME type association
- Date: Mon, 08 Jan 2007 15:46:15 +0100
On Sun, 2007-01-07 at 18:08 +0100, Daniel Leidert wrote:
> x-posting nautilus-list and gnome-vfs-list
>
> Hello,
>
> I observe some weired behaviour. I defined a MIME type chemical/x-pdb
> with file extension .ent using the shared-mime-info database (via the
> chemical-mime-data package) and defined a pattern with priority 80 (and
> also tried 50). Now I have a real Protein DataBase file with file
> extension .ent (let's say chemical.ent) and an entity definition file
> (starting with an XML comment) with the same extension (let's say, e.g.
> isoamsa.ent). When I start nautilus and have a look at both files, both
> files are detected as chemical/x-pdb (checked via properties), but
> isoamsa.ent shows a different icon than chemical.ent. The latter shows
> gnome-mime-chemical.png as expected and the isoamsa.ent shows some white
> paper icon (not sure, where this icon is located, still searching -
> probably preview?). Where does this difference come from? Some
> inconsistency? It seems, the preview for text-file is used, but the MIME
> type is detected as chemical/x-pdb. But then why chemical.ent does not
> have a preview? chemical/x-pdb is a sub-class of text/plain.
>
> If this is not the right list to discuss this issue or if it is caused
> elsewhere, please forward this mail to the right list.
>
> I will not be available until next Sunday and cannot answer questions
> during this time.
Maybe magic sniffing (which we do on file selection) returns a different
mimetype than extension mapping for the xml file. Strange that both
report the same mimetype though. I don't know what could be happening.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an obese drug-addicted cop possessed of the uncanny powers of an insect.
She's a blind mutant angel fleeing from a Satanic cult. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]