<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Wed, 2014-04-30 at 11:38 +0200, Bastien Nocera wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Wed, 2014-04-30 at 05:23 -0400, Ryan Lortie wrote:
<FONT COLOR="#737373">> On Thu, Apr 24, 2014, at 13:50, François Cami wrote:</FONT>
<FONT COLOR="#737373">> > I've read the Desktop Entry Specification at</FONT>
<FONT COLOR="#737373">> > <A HREF="http://standards.freedesktop.org/desktop-entry-spec/latest/index.html">http://standards.freedesktop.org/desktop-entry-spec/latest/index.html</A></FONT>
<FONT COLOR="#737373">> > and haven't found an answer to my problem, so here goes:</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> I'm not sure any of these options will really work.</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> In the simple case of applications with plugins one of these options</FONT>
<FONT COLOR="#737373">> might be acceptable, but consider the case that we have something like</FONT>
<FONT COLOR="#737373">> Totem using GStreamer.  When I install a GStreamer plugin, how should it</FONT>
<FONT COLOR="#737373">> know about Totem existing in order to update its list?</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> The only thing I can think of is that we have some mime type to mean</FONT>
<FONT COLOR="#737373">> "all of the types of things supported by GStreamer" (where GStreamer</FONT>
<FONT COLOR="#737373">> could also be the name of an individual application, in the case of</FONT>
<FONT COLOR="#737373">> direct plugins).  It might make sense to also say "all of the _audio_</FONT>
<FONT COLOR="#737373">> file types supported by GStreamer" as well.</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> I'm not really sure what this would look like, and I'm also not sure if</FONT>
<FONT COLOR="#737373">> I would be in favour of the final result.  This is a tough problem and</FONT>
<FONT COLOR="#737373">> I'm not sure that any solution is palatable.</FONT>

For the GStreamer case, I should add that:
- GStreamer doesn't really "support" mime-types. At best, you would know
that you have a plugin to handle the container type (AVI, MPEG-4, MKV).
- Using GStreamer's automatic codec installers requires _all_ the
possibly supported types to be listed in the desktop file.
</PRE>
</BLOCKQUOTE>
<BR>
We're not using desktop files for this on Ubuntu, but content hub registrations. What we decided for the GStreamer case is to have a key that was "I use GStreamer" so then the hub could be smart enough to look at GStreamer and turn those into types that can be supported. Allows for support of proprietary protocols on devices that have licenses (and plugins) that support them.<BR>
<BR>
Ted<BR>
<BR>
</BODY>
</HTML>