Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 33 lines (24 sloc) 1.08 KB
#!/bin/sh
# "THE BEER-WARE LICENSE":
# Aldis Berjoza wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return. <graudeejs@gmail.com>
# Wrapper script for various browsers. Perfect place to set default commandline options
# Args - anything browser accepts
# Q: Why do you need browser wrapper script?
# A: Not all apps respect BROWSER evironment variable. If you use wrapper,
# once you decide to change your browser, you don't need to convigure all
# apps to your new browser :) All you need to do is in app config set
# browser to browser.sh and you can forget about it.
[ -f "$WMSCRIPTS_DIR/config" ] && . "$WMSCRIPTS_DIR/config"
if [ $DISPLAY ]; then
MY_BROWSER=${MY_BROWSER:-firefox}
case $MY_BROWSER in
'chrome' | 'chromium' ) exec $MY_BROWSER $CHROME_CMDL $* ;;
'firefox' ) exec $MY_BROWSER $FIREFOX_CMDL $* ;;
*) exec $MY_BROWSER $* ;;
esac
else
exec ${MY_CLI_BROWSER:-lynx} $*
fi
# vim: set ts=4 sw=4 ft=sh sts=4:
Jump to Line
Something went wrong with that request. Please try again.