Use an array of browser launchers instead of boilerplate code in update_default_browser()
authorSteven Luo <steven+maemo@steven676.net>
Sun, 30 May 2010 04:25:42 +0000 (21:25 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Sun, 30 May 2010 04:25:42 +0000 (21:25 -0700)
commitbf130a22e50fa0de2a13485016635a90a3b0861a
tree6e99c46d9eea29b17f1ff639f13ba84da7dbb33b
parent1f1aeaa00a026681aafc9ca8c872815ec5239f1f
Use an array of browser launchers instead of boilerplate code in update_default_browser()

Replace the existing set of if-elses comparing default_browser against
string constants with a loop over an array of browser launchers, which
will be (marginally) easier to maintain.
launcher.c