![]() |
Re: [Python][Fremantle] How To Correctly Open The Browser
Maybe I misunderstand the original question, but why not use the "standard" Python way of doing this ? Is the webbrowser module not available in pymaemo ?...
http://docs.python.org/library/webbr...ule-webbrowser |
Re: [Python][Fremantle] How To Correctly Open The Browser
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.
|
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
Code:
if (gc.get_string('/desktop/gnome/url-handlers/http/command') == 'epiphany %s'): |
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
Code:
# Hacky fix for NB#136012 |
Re: [Python][Fremantle] How To Correctly Open The Browser
I found Two alternatives:
Code:
import os Code:
import webbrowser The second solution works in ubuntu as well as maemo5 without issue or the need for dbus or osso in your depends http://docs.python.org/library/webbrowser.html Quote:
I love the will do the right thing. quote, it seems to just do that. |
All times are GMT. The time now is 12:00. |
vBulletin® Version 3.8.8