Re: set elinks to default browser in X-Windows

Robert Jim Fulner <[email protected]> Tue, 17 May 2011 11:11:58 -0400
Newsgroups gmane.comp.web.elinks.user
Message-ID <[email protected]>
Fabienne,

Thanks a lot.

Your script is a little beyond my understanding. Would you mind taking 
some time to explain what's actually going on here?

==
Jim Fulner
3059 Cumberland Rd
Berkley, MI 48072
248-971-0259

Sent with Iceape Mail

[email protected] wrote:
>
>> exec elinks -remote {URL:+"$URL"}
>                       ^
> A $ is missing here.
>
> I've written a wrapper script that opens the link in a new tab if ELinks
> is running, and otherwise launches ELinks in a new terminal window (here
> roxterm with a specific profile for ELinks) if X is running, or in the
> console if not.
>
> 	#!/bin/sh
>
> 	if elinks -remote ping\(\) 2>/dev/null; then
> 	    exec elinks -remote ${1:-about:blank}
> 	elif [ -n "$DISPLAY" ]; then
> 	    exec roxterm -p ELinks -e elinks $1
> 	else
> 	    elinks $1
> 	fi
>
> 	exit 0
>
> I've put this in the file ~/bin/relinks and set the $BROWSER environment
> variable to relinks (export BROWSER="relinks" in ~/.bash_profile or
> ~/.profile), so sensible-browser uses relinks to open URLs.
>
> Fabienne
>
>
>
> ------------------------------
>
> _______________________________________________
> elinks-users mailing list
> [email protected]
> http://linuxfromscratch.org/mailman/listinfo/elinks-users
>
>
> End of elinks-users Digest, Vol 743, Issue 1
> ********************************************
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users