Active Topics

 


Reply
Thread Tools
taylork's Avatar
Posts: 16 | Thanked: 1 time | Joined on Oct 2007 @ Detroit, MI
#1
I'm trying to setup my url-viewers line in pine.

What is the command to run the browser from on an xterm? How would I run it in a new or existing window and go to www.google.com for example?
 
Posts: 193 | Thanked: 41 times | Joined on Jan 2007 @ Paia, Maui, Hawaii
#2
Originally Posted by taylork View Post
I'm trying to setup my url-viewers line in pine.

What is the command to run the browser from on an xterm? How would I run it in a new or existing window and go to www.google.com for example?
From a thread relating to setting up 'gaimī fo launch email in the default browser:

- launch in a new window:
Code:
dbus-send --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.open_new_window string:%s
- launch in an existing window:
Code:
dbus-send --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser com.nokia.osso_browser.load_url string:%s
I just double checked this in Xtterm replacing %s with 'www.gmail.com' and it worked fine.

Perhaps somebody else knows a better way.


[PS: /usr/bin/browser 'www.gmail.com' gives me a "Segmentation fault "
 
taylork's Avatar
Posts: 16 | Thanked: 1 time | Joined on Oct 2007 @ Detroit, MI
#3
Thanks! I just needed to put it in a script & it worked great.

~ $ cat load_url
#/bin/sh

dbus-send --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser com.nokia.osso_browser.load_url string:$1

~ $ grep url-viewers .pinerc
url-viewers="/home/user/load_url _URL_",
~ $ ls -la load_url
-rwxr-xr-x 1 user users 136 Nov 5 20:50 load_url
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:14.