changeset 345:0694882a1ad8

moar dox!
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 24 Jun 2013 15:40:01 -0700
parents f833aef163c6
children 7eaaf99e3182
files bin/setdefaultbrowser.sh
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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