Commit 9bb29b40 authored by Willi Rath's avatar Willi Rath

Add Chromium lookup for MacOSX

parent ef330f15
......@@ -22,6 +22,11 @@ echo using port $socks_5_port
# Open socks5 proxy which will close after 15 Seconds if the tunnel is not
# used. Extension of sleep time necessary?
ssh -f -D localhost:${socks_5_port} ${tunnel_host} sleep 15
which chromium-browser || browser=chromium
# cycle through possible browsers
which chromium-browser &>/dev/null && { echo chromium-browser; return; }
which chromium &>/dev/null && { echo chromium; return; }
[ -e /Applications/ ] && { echo "/Applications/"; return; }
${browser} --new-window --user-data-dir="/tmp/chromium_user_data_$(date -Ins)" --proxy-server="socks5://localhost:${socks_5_port}" ${URL}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment