Re: Fremantle: Opening URLs and local files

2009-10-07 Thread Cornelius Hald
On Tue, 2009-10-06 at 22:17 +0100, Andrew Flegg wrote: 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

Re: Fremantle: Opening URLs and local files

2009-10-06 Thread Cornelius Hald
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?

Re: Fremantle: Opening URLs and local files

2009-10-06 Thread Graham Cobb
On Tuesday 06 October 2009 18:37:51 Cornelius Hald wrote: I was looking for a method which will work on http, ftp, mailto and file URIs, but it looks like there is nothing ready made. So I now check the protocol and do whatever DBus call is appropriate. Sounds like a good candidate for a

Re: Fremantle: Opening URLs and local files

2009-10-06 Thread Cornelius Hald
On Tue, 2009-10-06 at 19:34 +0100, Graham Cobb wrote: On Tuesday 06 October 2009 18:37:51 Cornelius Hald wrote: I was looking for a method which will work on http, ftp, mailto and file URIs, but it looks like there is nothing ready made. So I now check the protocol and do whatever DBus call

Fremantle: Opening URLs and local files

2009-09-17 Thread Thomas Perl
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? Is there a command-line utility that can be used or a D-Bus call? If so, where is the D-Bus call documented (sample code would be enough

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread Claudio Saavedra
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

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread Piñeiro
From: Claudio Saavedra csaave...@igalia.com 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? In Fremantle you

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread daniel wilms
Hi, here is an example for a d-bus call to open the browser: 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:http://www.google.com; To use the mediaplayer you could have a look into the

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread David Greaves
Thomas Perl wrote: 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? Is there a command-line utility that can be used or a D-Bus call? If so, where is the D-Bus call documented

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread Faheem Pervez
Hi, I'm a libosso whore so this is how I do it: #include libosso.h osso_context_t* osso_context; osso_rpc_t* osso_retval = { 0 }; char *open = http://www.google.com;; osso_context = osso_initialize (com.what.ever, 0.9.9, FALSE, NULL); osso_rpc_run(osso_context, com.nokia.osso_browser,

Re: Fremantle: Opening URLs and local files

2009-09-17 Thread Till Harbaum / Lists
Hi, i am using tablet-browser-interface which imho exists for exactly this purpose: #include tablet-browser-interface.h osso_rpc_run_with_defaults(my_osso_context, osso_browser, OSSO_BROWSER_OPEN_NEW_WINDOW_REQ, NULL, DBUS_TYPE_STRING, my_url,