Friday, June 05, 2009

select chromium, chrome else firefox as default browser

Now that google-chrome requete-alpha build is published by Google [1], I have this
handy script as my default browser "selector":

#!/bin/bash
#
# $HOME/bin/browser.sh
# Author: JuanJo ( juanjosec O gmail o com )
#
# if running, try: chromium-browser, google-chrome
# else: firefox
#
case "$(ps -oargs= -C chrome)" in
/usr/lib/chromium-browser*)
exec /usr/bin/chromium-browser "$@";;
/opt/google/chrome*)
exec /opt/google/chrome/chrome "$@";;
esac
exec /usr/bin/firefox "$@"
exit $?

# Point2 me with the output from:
for p in /desktop/gnome/{applications/browser/exec,url-handlers/http{,s}/command}; do
echo gconftool-2 -s $p -t string "$HOME/bin/browser.sh \"%s\""
done



In a related note, you can see current milestone (LinuxDev [2]) and what to expect for the next one (LinuxBeta[3]).

[1] Danger: Mac and Linux builds available
[2] Chromium LinuxDev milestone
[3] Chromium LinuxBeta milestone

3 comments:

Alfrenovsky said...

parece que hubo un:

cat /dev/zero > /dev/brain

:-)

Unknown said...

umhh... en realidad quizás sería:
/dev/balls: No space left on device.

, bastante harto de la elefanteasis de memoria y cpu de firefox. De todas maneras, queda por ver cómo se comportará chrome "supercharged" con todas las features y la inmensa historia de sitios que tiene mi ffox ahora.
Es decir: compararación N/A.

Unknown said...

FYI it's fixed (back) since
chromium-browser_3.0.185.0~svn20090610r18008