[maemo-developers] [maemo-developers] Open URL with 770's browser

From: David Woodhouse dwmw2 at infradead.org
Date: Tue Jan 10 20:38:03 EET 2006
On Mon, 2006-01-09 at 19:01 -0500, Roland Krikava wrote:
> Can anyone suggest a way to open a URL using the native browser on the
> 770? I noticed that someone posted earlier about attempting to use
> dbus to accomplish this..

I just hacked up a shell script to make this work for viewing images and
URLs from pine (http://david.woodhou.se/maemo-pine.html) ...

#!/bin/sh

if ! 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:"$1" ; then
    DISPLAY=:0 run-standalone.sh /usr/bin/browser &>/dev/null &
    sleep 5
    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:"$1"
fi
# give it a while to access local files before they're deleted
if echo "$1" | grep ^/ ; then
        sleep 10
fi


(Btw, please could we have the Subject line mangling on this mailing
list removed or at _least_ reduced to a sane number of characters.
Removing it completely would be best -- there are much better ways to
filter mail, and people who really want it there can always _add_ it for
themselves; adding it locally is much easier than trying to remove it
again once it's been added).

-- 
dwmw2


More information about the maemo-developers mailing list