Skip to content

Instantly share code, notes, and snippets.

@mxey
Created June 14, 2013 11:24
Show Gist options
  • Select an option

  • Save mxey/5781120 to your computer and use it in GitHub Desktop.

Select an option

Save mxey/5781120 to your computer and use it in GitHub Desktop.
# Add to the alternatives system
#
# On Ubuntu 8.04, we have the following priorities:
#
# /usr/bin/konqueror 100
# /usr/bin/seamonkey 80
# /usr/bin/firefox-3.0 40
# /usr/bin/firefox-2 30
# /usr/bin/galeon 120
#
# This is all pretty insane, and the Debian policy manual does not have clear
# guidelines. While these values should really be keyed off the most popular
# browser (Firefox), in practice, the most insane setting probably needs to
# become the lower bound (hi, Galeon), so let's go with the following scheme:
CHANNEL=stable
case $CHANNEL in
stable )
# Good enough to be the default.
PRIORITY=200
;;
beta )
# Almost good enough to be the default. (Firefox stable should arguably be
# higher than this, but since that's below the "galeon threshold", we're not
# setting our priority below it. Anyone want to poke Firefox to raise their
# priority?)
PRIORITY=150
;;
unstable )
# Unstable, give it the "lowest" priority.
PRIORITY=120
;;
* )
PRIORITY=0
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment