#!/bin/bashmyBrowser="$(which firefox || which chromium-browser || which opera || which arora)"if[[$myBrowser== *firefox ]]thenecho"su -c $whoami$myBrowser -new-window http://$hostname:$port"
su -c $whoami"$myBrowser -new-window http://$hostname:$port"elseecho"Can not open web browser titled '$myBrowser' with arguments: -new-tab http://$hostname:$port"fi
Last edit: Duy Dinh 2014-05-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Last edit: Duy Dinh 2014-05-11