[maemo-developers] Fremantle: Opening URLs and local files
From: Andrew Flegg andrew at bleb.orgDate: Wed Oct 7 00:17:03 EEST 2009
- Previous message: Fremantle: Opening URLs and local files
- Next message: Fremantle: Opening URLs and local files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Oct 6, 2009 at 18:37, Cornelius Hald <hald at icandy.de> wrote: > On Thu, 2009-09-17 at 13:45 +0300, Claudio Saavedra wrote: >> El jue, 17-09-2009 a las 12:15 +0200, Thomas Perl escribió: >> > Hello! >> > >> > What is the canonical way of opening a browser and the media player >> > (or more general: opening a URL and opening a local file) from code >> > on Fremantle? >> >> gtk_show_uri() should work in theory, but I don't know if it does in >> practice. > > Just for the record: It's not working very well ;) > > If you use gtk_show_uri() with something like this: "http://zwong.de" > you get an error that the process "epiphany" could not be executed. I raised this with Andre a while ago and he pointed me to NB#136012, the problem is the GConf key: /desktop/gnome/url-handlers/http/command This is set, by default, to "epiphany %s" (or similar). This is obviously wrong. I need it to be right for python-facebook to handle the authentication process for Hermes' Facebook use. So, in my postinst I set it to: dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"%s" Snippet from Hermes' postinst: --------8<-------- # Hacky fix for NB#136012 gconftool-2 -s /desktop/gnome/url-handlers/http/command 'dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"%s"' --type string -------->8-------- > For "mailto:nothing at icandy.de" you get an error that the process > "evolution" could not be executed and so on... Presumably it's the same problem in a slightly different GConf kye. HTH, Andrew -- Andrew Flegg -- mailto:andrew at bleb.org | http://www.bleb.org/
- Previous message: Fremantle: Opening URLs and local files
- Next message: Fremantle: Opening URLs and local files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]