![]() |
[Python][Fremantle] How To Correctly Open The Browser
I've asked this question a while back and received an answer of:
Code:
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:"google.com" Code:
Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.nokia.osso_browser was not provided by any .service files This is the last thing stopping me from promoting my app to extras-testing....Thanks! |
Re: [Python][Fremantle] How To Correctly Open The Browser
FWIW, that works on my N900. In the SDK, dbus-send commands must also be prefixed with run-standalone.sh.
And, unless you're using libosso to do the calling, you must prefix all URLs with http:// or the browser will refuse to open the URL given if there is already a browser window open. |
Re: [Python][Fremantle] How To Correctly Open The Browser
Then this is probably an SDK-only issue?:
Quote:
|
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
|
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
On your N900: 1) Enable extras-devel* 2) Install TouchSearch (should be v1.1-4)** 3) Try searching something If that works fine, reboot and repeat those three steps above before doing anything else. Thanks! * For others reading this thread, please don't do this. I do not want a bricked N900 on my conscious. Thank you :) ** This is a Python app, so it'll pull in a few megs in python libraries. |
Re: [Python][Fremantle] How To Correctly Open The Browser
I installed 1.1-4 and see nothing available in my "Select widget[s]" list.
OK, rebooted and now it shows up. Still doesn't work. But, while I'm here: - HildonEntry over GtkEntry is preferred; - The GtkImage in the dialog would be nicer if it was a button with the image so that one can change search engine from there, if needed, without having to go back; and - I'll look into it myself (the launching of the browser, that is) |
Re: [Python][Fremantle] How To Correctly Open The Browser
OK, sorry, it does turn out that it is working, but dbus-send is a really slow way of doing it. So I'll still work on a diff, anyway. :p
|
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
Quote:
|
Re: [Python][Fremantle] How To Correctly Open The Browser
Quote:
Hand on heart: It's way faster to open sites, and I do not need to open the browser first. I hope that you can implement the other changes I suggested, and, perhaps, to make it like the original applet for Diablo, a history feature? |
Re: [Python][Fremantle] How To Correctly Open The Browser
Wow, thanks qwerty! That looks great! I tried using the osso stuff but couldn't figure out the API. This is waaaay cleaner than the kludge I was using. Thanks!
Concerning the other suggestions -- yes, I will definitely look into them. I think a history is also very doable. :) |
All times are GMT. The time now is 16:59. |
vBulletin® Version 3.8.8