[Portland] Re: [Fwd: Re: Mime-typ Scribus?]
James Richard Tyrer
tyrerj at acm.org
Wed Jun 21 01:11:55 BST 2006
Alexander Larsson wrote:
> On Sat, 2006-06-17 at 16:40 -0700, James Richard Tyrer wrote:
>> Waldo Bastian wrote:
>>> On Friday 16 June 2006 06:04, Mike Hearn wrote:
>>>> This wasn't written by me but apparently it works:
>>>>
>>>> http://cvs.sunsite.dk/viewcvs.cgi/autopackage/main/share/apkg-mimetype.xsl?
>>>> rev=1.3&content-type=text/vnd.viewcvs-markup
>>>>
>>>> Bear in mind they aren't an exact match. You have to specify an icon
>>>> name in the freedesktop.org XML file in a separate namespace --
>>>> linking icons to mime types has never actually been specced out!
>>> The recent concensus is to use <major>-<minor>.png as icon for mimeypes.
>>>
>>> See the bottom of
>>> http://www.freedesktop.org/wiki/Standards_2fshared_2dmime_2dinfo_2dspec
>> Yes, this is what I had understood except that currently GNOME is using:
>>
>> gnome-mime-<major>-<minor>
>>
>> which generalizes as:
>>
>> <desktop>-mime-<major>-<minor>
>>
>> so I used for the KDE scribus icon:
>>
>> kde-mime-application-x-scribus
>>
>> Clearly, we should drop the 'desktop' prefix and the 'mime' is now
>> redundant since the MIME type icons will be in the subdirectory
>> "mimetypes". So (dropping these), a script to create the KDE MIME type
>> 'desktop' files is going to use:
>>
>> application-x-scribus
>
> Gnome has moved to this form already (although the full move might take
> a while), since its what the new icon nameing specification specifies.
>
> However, themed mimetypes are still sort of non-ideal. I proposed
> something earlier that I hope would make it work better:
> http://lists.freedesktop.org/archives/xdg/2005-December/007634.html
> But there hasn't been any motion on this since then.
>
> With something like this in place the mime spec for the
> application/x-scribus mimetype could specify a generic icon name that
> all icon themes have, and then the file conflict issue is much less
> problematic. I.E. if you don't install the icon in hicolor then themes
> without the specific scribus icon will still get a not-total-crap icon
> for the scribus files.
I have previously suggested on the XDG list that the: "Icon=" variable
in the 'desktop' file could have a list of possible icons, rather than
just one to be searched for in order L2R. It appears to me that this
would give the most control over specific vs. generic MIME type icons.
--
JRT
More information about the kde-core-devel
mailing list