That seems a reasonable plan to me. I've orphaned the mime-support package, however, because I have no time to work on it right now and do not expect to have any for the foreseeable future.<div><br></div><div>-- Brian<br>
<br><div class="gmail_quote">On Fri, Jul 13, 2012 at 8:26 PM, Vincent Bernat <span dir="ltr"><<a href="mailto:bernat@debian.org" target="_blank">bernat@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
❦ 13 juillet 2012 12:18 CEST, Per Olofsson <<a href="mailto:pelle@dsv.su.se">pelle@dsv.su.se</a>> :<br>
<div class="im"><br>
> 1. Rewrite xdg-utils so that it is robust and always works. Instead of<br>
> relying on desktop environments, it should do the needed work by<br>
> itself. Currently it's something of a hack, especially when running in<br>
> "generic" mode. It should probably be written in another language than<br>
> shell (e.g. Perl, Python, C). A nicer user interface for the command<br>
> line wouldn't hurt either.<br>
><br>
> 2. Make all other packages either use xdg-utils or follow the<br>
> <a href="http://freedesktop.org" target="_blank">freedesktop.org</a> MIME specs.<br>
<br>
</div>Yes, I also think this is a good plan.<br>
<br>
Relying on existing desktop tools is too difficult. They get deprecated<br>
(for example, gnome-open has been replaced by gvfs-open) or they cannot<br>
be adapted easily because maintainers usually don't care about those<br>
corner use cases. For example, gvfs-open does not wait for the viewer to<br>
terminate, this makes difficult for mailers to pass a temporary<br>
file. See:<br>
- <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677430" target="_blank">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677430</a><br>
- <a href="https://bugzilla.gnome.org/show_bug.cgi?id=652262" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=652262</a><br>
- <a href="https://bugzilla.gnome.org/show_bug.cgi?id=678504" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=678504</a><br>
<br>
Once you get a working xdg-open, you can get a compatibility layer for<br>
the mailcap stuff:<br>
*/*; xdg-open '%s'; test=test -n "$DISPLAY"<br>
<br>
Or something more sensible like:<br>
image/gif; xdg-open -t image/gif '%s'; test=test -n "$DISPLAY"<br>
image/png; xdg-open -t image/png '%s'; test=test -n "$DISPLAY"<br>
[...]<br>
<br>
The remaining problem is defining the priority of such entries compared<br>
to entries inserted by packages still supporting mailcap.<br>
<span class="HOEnZb"><font color="#888888">--<br>
#if 0<br>
2.2.16 /usr/src/linux/fs/buffer.c<br>
</font></span></blockquote></div><br>
</div>