# HG changeset patch # User Jeff Hammel # Date 1372113601 25200 # Node ID 0694882a1ad87a9f04fdffecc656edfd036106e4 # Parent f833aef163c6538420079c9dc5b479653c05e79d moar dox! diff -r f833aef163c6 -r 0694882a1ad8 bin/setdefaultbrowser.sh --- a/bin/setdefaultbrowser.sh Mon Jun 24 11:16:35 2013 -0700 +++ b/bin/setdefaultbrowser.sh Mon Jun 24 15:40:01 2013 -0700 @@ -1,7 +1,11 @@ #!/bin/bash +# To get all selections: # sudo update-alternatives --get-selections +# To get a particular selection: +# update-alternatives --display x-www-browser + # http://askubuntu.com/questions/100693/how-can-i-manually-change-the-default-web-browser # http://askubuntu.com/questions/45885/how-do-i-set-a-custom-browser-as-default-in-preferred-applications?rq=1 # http://fvue.nl/wiki/Linux:_Default_browser @@ -23,7 +27,6 @@ update-alternatives --install ${LINKPATH} ${LINK} ${BROWSER} 99 update-alternatives --set ${LINK} ${BROWSER} update-alternatives --display ${LINK} - echo - unlink ${LINKPATH} - ln -s ${BROWSER} ${LINKPATH} +# unlink ${LINKPATH} +# ln -s ${BROWSER} ${LINKPATH} done