Rev 22527 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/bash## sensible-browser -- based on Debian's sensible-editor and sensible-pager## this is however in the context of Debian's R package which needs the# remote execution feature available in older netscape versions and mozilla## Dirk Eddelbuettel <edd@debian.org> 10 Nov 2002shopt -s execfail# reorder at will, these are in alphabetical orderif [ "${WWWBROWSER}" != "" ]thenexec ${WWWBROWSER} "$@"elseexec mozilla "$@"exec netscape "$@"# exec dillo "$@"# exec galeon "$@"# exec konqueror "$@"# exec light "$@"echo "Error: Could not find a web browser!" 1>&2echo "Set the \$WWWBROWSER environment variable to your desired program." 1>&2exit 1fi