Comment 41 for bug 115071

Revision history for this message
In , Pomme-compote-bugzillamozilla (pomme-compote-bugzillamozilla) wrote :

(In reply to comment #29)
> I do not get at all what the discussion is about. We have support for finding
> the handler for an app at the moment using the gvfs interface. Just extend that
> interface to work with multiple applications and pipe the result into the app
> chooser. I posted how we could do that. There might be no standard, but why
> care? If there will be a standard it is most likley that it will go into the
> gvfs interface, so we do not even have to update the code after a proper
> standard has been established.

You're right. We need a solution and cannot wait for standardization. But, this does not prevent us to plan for what must be realized on this subject from a short to longer term.

A quick solution:
-----------------
Develop specific and separate 'Open with…' implementation for Firefox for GTK desktops (Gnome & XFCE) and Qt ones (KDE).

The way to do this, for GTK, is as you said Clemens to use the Gnome library. GnomeVFS is now deprecated and GIO must be preferred. But we find the same methods (http://library.gnome.org/devel/gio/stable/GAppInfo.html#g-app-info-get-all) and your code could easily adapted.

The cons is that we have different implementations for Gnome/XFCE and KDE. Does Firefox can handle that, technically and formally? If not, those dev cannot be done upstream and must be made on firefox-gnome-support for instance.

The other con is that it will duplicate the code to produce an 'Open with…' dialog. Indeed, this code is already present in Nautilus. But this duplication is already done in existing Gnome apps.

The medium term plan:
------------------------

It would be great if Gnome dev, and specifically Nautilus ones, could extract the 'Open with…' code from Nautilus to be used externally. Good for Firefox and for all other application that need this code. Some talks about this here:http://markmail.org/message/mcarb3i4gg5hcvm3#query:+page:1+mid:qxaeqv22o3pkzgvx+state:results.

The long term plan:
-------------------

A FreeDesktop specification, standardizing the way to get the list of all applications registered for a mime-type and to open an 'Open with…' dialog would greatly simplify the work. An evolution of xdg-mime to get that list and not only the default application like now could be a way.

What do you think about this?