Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'surfraw patch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
surfraw patch
Authored by: flipflop on Sep 04, '04 03:27:16PM

If you want to use surfraw with your default browser, and don't want to set up all those aliases, all you need to do is:

(a) change one line in the surfraw script (if installed w/ fink, it is at /sw/bin/surfraw):

the line which reads:

if ok SURFRAW_graphical && test -n "$DISPLAY"; then

should be changed to read:

if ok SURFRAW_graphical; then

(it was written on the assumption that you would only want to use a graphical browser if X11 was running.)

(b) edit the surfraw.conf file (if installed w/ fink, it is /sw/etc/surfraw.conf):

You want to change:

def SURFRAW_graphical_browser mozilla

to

def SURFRAW_graphical_browser open

or (if you have launch installed):

def SURFRAW_graphical_browser launch

Now you should be able to run surfraw directly, without having to pass the browser option on the command line.

[ Reply to This | # ]