[maemo-developers] Fwd: Launching web browser from python

From: Henri Bergius henri.bergius at iki.fi
Date: Wed Oct 10 16:09:08 EEST 2007
Sorry, forgot to send this to the list.

---------- Forwarded message ----------
From: Henri Bergius <henri.bergius at iki.fi>
Date: Oct 10, 2007 1:33 PM
Subject: Re: Launching web browser from python
To: David HAUTBOIS <david.hautbois at free.fr>


On 10/10/07, David HAUTBOIS <david.hautbois at free.fr> wrote:
> Hi
>
> I'm developping a python application.
> What is the best way to launch the web browser with a specified URL ?

This is what we do in maemoplazer:

        # Launch browser DBUS service
        bus = dbus.SessionBus()
        proxy_obj = bus.get_object('com.nokia.osso_browser',
'/com/nokia/osso_browser')
        dbus_iface = dbus.Interface(proxy_obj, 'com.nokia.osso_browser')
        # Make browser use correct url
        dbus_iface.open_new_window(str("url"))

> David.

/Henri

--
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Skype: henribergius
Jabber: henri.bergius at gmail.com
Jaiku: http://bergie.jaiku.com/


-- 
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Skype: henribergius
Jabber: henri.bergius at gmail.com
Jaiku: http://bergie.jaiku.com/

More information about the maemo-developers mailing list