Best way to register a file format plugin for an app with nautilus's mime-handler etc.

Bastien Nocera bnocera at redhat.com
Tue Feb 24 10:47:07 UTC 2009


On Tue, 2009-02-24 at 12:36 +0200, Nicu Buculei wrote:
> Caolán McNamara wrote:
> > So, here's the example scenario: Someone writes an extension for
> > OpenOffice.org writer which adds a file format importer and that gets
> > packaged into Fedora. Is there a way to then register the extra
> > mime-type that writer now supports if, and only if, that extension is
> > installed.
> 
> This is supposed to also work the other way: with the extension NOT 
> installed an user click on a file of that type and PackageKit pop-up, 
> ask about installing the extension, do its job, the extension is 
> installed and the file successfully opened?

Then package-kit can't find anything, because you haven't registered the
mime-type in any desktop files, so the fact that it's supported isn't
advertised in the RPM headers.

So the short answer is that you need a desktop file.




More information about the Fedora-desktop-list mailing list