Nice work<div><br></div><div>-K<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 9:33 PM, Stanislav Brabec <span dir="ltr">&lt;<a href="mailto:sbrabec@suse.cz">sbrabec@suse.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hallo.<br>
<br>
I have been working on an implementation of smart utilities for<br>
maintenance of MIME defaults in glib (gtk+, GNOME) and<br>
desktop-file-utils that may make defaults desktop specific.<br>
<br>
The implementation is capable:<br>
- Parse all desktop files and inspect Categories and MimeType keywords.<br>
- Automatically maintain defaults list for all MIME types using a simple<br>
  configuration file and simple heuristic.<br>
- Use different defaults for the same MIME type and the same application<br>
  started from the different environment (i. e. nautilus in GNOME will<br>
  use file-roller for ZIP archives, but when started from KDE, it will<br>
  use ark).<br>
<br>
It helps to maintain complete and correct defaults.list and improves<br>
behavior of systems with more than one desktop environment installed.<br>
<br>
The implementation is available here:<br>
Sources:<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=30214" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=30214</a><br>
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=630171" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=630171</a><br>
Binaries (openSUSE, Fedora):<br>
<a href="https://build.opensuse.org/project/show?package=&amp;project=home%3Asbrabec%3Amime-defaults" target="_blank">https://build.opensuse.org/project/show?package=&amp;project=home%3Asbrabec%3Amime-defaults</a><br>
(for glib, just libgio replacement is sufficient)<br>
<br>
Note that you have to set environment variable DESKTOP_SESSION in the<br>
particular session init script. (See the discussion in the bug.)<br>
<br>
Comments are welcome.<br>
--<br>
Best Regards / S pozdravem,<br>
<br>
Stanislav Brabec<br>
software developer<br>
---------------------------------------------------------------------<br>
SUSE LINUX, s. r. o.                          e-mail: <a href="mailto:sbrabec@suse.cz">sbrabec@suse.cz</a><br>
Lihovarská 1060/12                            tel: +49 911 7405384547<br>
190 00 Praha 9                                  fax: +420 284 028 951<br>
Czech Republic                                    <a href="http://www.suse.cz/" target="_blank">http://www.suse.cz/</a><br>
<br>
_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
</blockquote></div><br></div>