<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="SUSE Sans">hi waldo,<br>
<br>
thanks for your explanations. I changed installation files - one error
and one question remains.<br>
- testsystem was openSuSE 10.2 with KDE 3.3.5 -<br>
<br>
1) I installed the mime-types but the icons were not applied on these.<br>
<br>
I created a file called "sofistik-mimes.xml" which contains several
mimetypes:<br>
<br>
&lt;?xml version="1.0"?&gt;<br>
&lt;mime-info
xmlns='<a class="moz-txt-link-freetext" href="http://www.freedesktop.org/standards/shared-mime-info">http://www.freedesktop.org/standards/shared-mime-info</a>'&gt; <br>
&lt;mime-type type="application/vnd.sofistik.cdb"&gt; <br>
&lt;comment&gt;SOFiSTiK Database&lt;/comment&gt;<br>
&lt;glob pattern="*.cdb"/&gt;<br>
&lt;/mime-type&gt;<br>
&lt;mime-type type="text/vnd.sofistik.dat"&gt;<br>
.....<br>
.....<br>
&lt;/mime-info&gt;<br>
<br>
later I installed the mime-types with:<br>
<br>
xdg-mime install sofistik-mimes.xml<br>
<br>
followed from_<br>
<br>
xdg-icon-resource install --context mimetypes --size 16
mime-animator_16.png application-vnd-sofistik-cdb<br>
xdg-icon-resource install --context mimetypes --size 32
mime-animator_32.png application-vnd-sofistik-cdb<br>
....<br>
<br>
the result is that there are icons installed in section "MIME-Types" <br>
application-vnd-sofistik-cdb<br>
gnome-mime-</font><font face="SUSE Sans">application-vnd-sofistik-cdb<br>
<br>
</font><font face="SUSE Sans">and the mime-type is properly installed
(checked in KDE control center) - but without the icons</font><font
 face="SUSE Sans"><br>
<br>
Did I make any mistake?<br>
<br>
2) The desktop files do now have a key "MimeType" - no problem with
that. But how do I enforce a specific order when a MimeType could be
handled with different applications.<br>
Is it determined through the install ordner of the desktop files via
xdg-desktop-menu?<br>
</font><font face="SUSE Sans"><br>
<br>
cheers,<br>
harald<br>
<br>
</font>
<pre class="moz-signature" cols="78">mit freundlichen Gr&uuml;&szlig;en / with kind regards

  Dipl.-Ing. Harald Nikolisin
  SOFiSTiK AG
  Entwicklung / Development
  <a class="moz-txt-link-abbreviated" href="http://www.sofistik.de">www.sofistik.de</a> / <a class="moz-txt-link-abbreviated" href="http://www.sofistik.com">www.sofistik.com</a>

  Vorst&auml;nde: Dr. Casimir Katz, Dipl.-Ing. Thomas Fink
  Aufsichtsrat: Dr. Johannes Harl (Vorsitz)
  Sitz: Oberschlei&szlig;heim, Registergericht: Amtsgericht M&uuml;nchen HRB 129 710
</pre>
<br>
<br>
Bastian, Waldo schrieb:
<blockquote
 cite="mid1B47D24854C7BC4FA8DA28BEBB59B0BA01475979@orsmsx419.amr.corp.intel.com"
 type="cite">
  <pre wrap="">Hi Harald,

Re 1) the process is to include the mimetype in the application's .desktop file. 

Re 2) a mimetype without x- must be registered with IANA. Using a vnd. prefix is a good idea, yes.

Re 3) Yes you need to use the xdg-icon-resource command to install an icon. The icon name is derived from the mimetype. No, SVG is not very well supported (I was under the impression it's mention had been removed from the manual)

Cheers,
Waldo
&nbsp;
Intel Corporation - Platform Software Engineering, UMG - Hillsboro, Oregon
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:portland-bounces@lists.freedesktop.org">portland-bounces@lists.freedesktop.org</a> [<a class="moz-txt-link-freetext" href="mailto:portland-bounces@lists.freedesktop.org">mailto:portland-bounces@lists.freedesktop.org</a>] On Behalf Of Harald Nikolisin
Sent: Monday, February 12, 2007 1:52 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:portland@lists.freedesktop.org">portland@lists.freedesktop.org</a>
Subject: [Portland] installing MIME-types

hi,

I'm trying to expand our installation script to install GUI programs properly on a linux desktop.
while xdg-desktop-menu is quite straightforward, I have some problems with xdg-mime and maybe someone can answer my questions.

this is the manual example of xdg-mime
------
shinythings-shiny.xml:

&lt;?xml version="1.0"?&gt;
&lt;mime-info xmlns='<a class="moz-txt-link-freetext" href="http://www.freedesktop.org/standards/shared-mime-info">http://www.freedesktop.org/standards/shared-mime-info</a>'&gt;
&nbsp; &lt;mime-type type="text/x-shiny"&gt;
&nbsp;&nbsp;&nbsp; &lt;comment&gt;Shiny new file type&lt;/comment&gt;
&nbsp;&nbsp;&nbsp; &lt;glob pattern="*.shiny"/&gt;
&nbsp;&nbsp;&nbsp; &lt;glob pattern="*.shi"/&gt;
&nbsp; &lt;/mime-type&gt;
&lt;/mime-info&gt;
-------

1) Is there no possibility to list applications in a specific order which are able to open "text/x-shiny" files?
2) What is the difference for mime-type "text/x-shiny" to "text/shiny"? Besides this, if Shiny is an ISV it should also prefix its mimetype with and "vnd.", or am I wrong?
3) The associated icons to that filetype are not declared in this xml file? Do I have to use the xdg-icon-resource script?

last question not related to xdg-mime. "Icon resources can be XPM files, PNG files or SVG files." (from xdg-icron-resourc manual) - Is either KDE 3.3 or Gnome 2.x able to render SVG icons in its menu or filemanager?

PS: I also would have searched the mailing lists for that topic to avoid duplicating entries but portland.freedesktop.org is currently down.

  </pre>
</blockquote>
</body>
</html>