Virtual MimeTypes support patch

Albert Astals Cid aacid at kde.org
Sun Oct 22 17:55:38 BST 2006


A Dissabte 21 Octubre 2006 21:05, Jos van den Oever va escriure:
> The solution given here:
>  http://lists.freedesktop.org/archives/xdg/2005-November/007544.html
> is not entirely clear to me.
> If I understand correctly, each plugin may add support for additional
> mimetypes, so the part of the .desktop file that talks about mimetype
> support for an application should be dynamic. How will the proposed
> XML format solve this?

Ignore that :-D

Basically each plugin installs a desktop file that says that extends that 
virtual mimetype adding some mimetypes. For more in depth explanation on how 
the .desktop has to look, see my patch, there is a nice description of that.

Albert

> Also I'm not sure 'virtual mimetypes' is a good 
> description of what you want. You probably mean 'virtual' as in
> 'virtual function'. Outside of C++, this meaning may not be as clear
> as it is for C++ programmers. I dont have a better suggestion by the
> way, because 'dynamic' is even worse.
>
> Cheers,
> Jos
>
> 2006/10/21, Albert Astals Cid <aacid at kde.org>:
> > Hi, this patch adds virtual mimetypes support for KDE.
> >
> > Virtual mimetypes basically add the possibility of having plugins that
> > add supported mimetypes to those the application supports.
> >
> > We need it for okular behaving properly, that is, not advertising it has
> > pdf support when the pdf plugin was not compiled.
> >
> > See http://lists.kde.org/?l=kde-core-devel&m=116023261725717&w=2 for the
> > whole explanation.
> >
> > Comments?
> >
> > Albert




More information about the kde-core-devel mailing list