Le Sun, 15 May 2011 22:09:32 -0400, Robert Jim Fulner
<ful...@gmail.com> a écrit :
>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
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to