Comment 4 for bug 275410

Revision history for this message
Michael Casadevall (mcasadevall) wrote : Re: sensible-browser not working

Its a major bug in Xubuntu, and x-www-browser is also affected, this causes our help system which calls x-www-browser to crash and burn miserably. Also breaks links in X-Chat and probably a few other things.

Here are my comments from the xubuntu-meta bug. Steve already came to the same conclusion why the script is broken so here are my remaining notes:

This is a bug in firefox that manifested when we removed midori as the default browser.

mcasadevall@blacksteel:~/src/linux-ports-2.6.25/debian$ update-alternatives --list x-www-browser
/usr/bin/firefox-3.0
/usr/bin/midori

mcasadevall@blacksteel:~/src/linux-ports-2.6.25/debian$ firefox-3.0
exec: 118: /usr/lib/firefox-3.0.3/firefox-3.0: not found

From the rules:
    update-alternatives --install /usr/bin/x-www-browser \
        x-www-browser /usr/bin/$APPNAME 40
    touch $LIBDIR/.autoreg

This is what cases the alternative to point to firefox-3.0 instead of firefox, and thus breaks x-www-browser.

I concur with Steve's solution that the best way to fix this bug is have the script check for a matching name, and fall back on $LIBDIR/firefox if no other things are found.