On Mon, 2007-11-12 at 11:07 -0500, Matthias Clasen wrote:
On Mon, 2007-11-12 at 16:48 +0100, Alexander Larsson wrote:
> On Mon, 2007-11-12 at 16:40 +0100, Ralf Ertzinger wrote:
> > Hi.
> >
> > On Mon, 12 Nov 2007 13:35:20 +0100, Alexander Larsson wrote:
> >
> > > It would be cool if we could autoextract mime handling information
> > > from desktop files installed in /usr/share/applications and generate
> > > "mime(application/pdf)" style rpm provides.
> >
> > YOu know, I like that idea. A lot.
>
> This will figure out the provides needed:
>
> for i in `grep -h MimeType /usr/share/applications/* | sed
"s/^MimeType=//" | sed "s/;/\n/g" | sort -u`; do echo
"mime($i)"; done
>
> Someone just has to turn it into a proper rpm find-provides thing.
While this may be a nice idea, it doesn't solve
a) editor vs viewer
b) inherited capabilities, ie totem can display any format gstreamer can
handle, which in turn depends on installed plugins
It seems to me that the desktop file is the wrong place then to keep
that information.
Nils
--
Nils Philippsen / Red Hat / nphilipp(a)redhat.com
"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety." -- B. Franklin, 1759
PGP fingerprint: C4A8 9474 5C4C ADE3 2B8F 656D 47D8 9B65 6951 3011