![]() |
2009-10-22
, 12:54
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#12
|
![]() |
2010-04-25
, 15:30
|
|
Posts: 43 |
Thanked: 28 times |
Joined on Nov 2009
@ Göteborg, Sweden
|
#13
|
The webbrowser module is available. However, you need to hack around a broken gconf key. There's an internal bug for it and you can see it being overridden in Hermes' postinst.
if (gc.get_string('/desktop/gnome/url-handlers/http/command') == 'epiphany %s'): raise Exception('Browser in gconf invalid (see NB#136012). Installation error.')
![]() |
2010-04-25
, 17:58
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#14
|
Jaffa, doesn't the Hermes code just exit if it's incorrect?
Code:if (gc.get_string('/desktop/gnome/url-handlers/http/command') == 'epiphany %s'): raise Exception('Browser in gconf invalid (see NB#136012). Installation error.')
# 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
![]() |
2010-06-10
, 04:56
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#15
|
import os url='http://www.maemo.org' os.system('browser --url=%s' %url)
import webbrowser webbrowser.open_new('http://www.maemo.org')
The webbrowser module provides a high-level interface to allow displaying Web-based documents to users. Under most circumstances, simply calling the open() function from this module will do the right thing.
![]() |
Tags |
browser, dbus, python |
|
http://docs.python.org/library/webbr...ule-webbrowser