This was done on my Openbox installation:
[darrel@Duron ~]$ update-alternatives --config x-www-browser
No alternatives for x-www-browser.
update-alternatives: unable to open /var/lib/rpm/alternatives/x-www-browser.rpm-new for write: Permission denied
[darrel@Duron ~]$ su
Password:
[root@Duron darrel]# update-alternatives --config x-www-browser
No alternatives for x-www-browser.
[root@Duron darrel]#
If Neal's method doesn't work, try adding export BROWSER="/usr/bin/google-chrome" to the end of your ~/.bashrc file. I'm not sure of the path or executable filename for Chromium, so you'll have to substitute it for "/usr/bin/google-chrome". I believe this should work for LXDE, as well.
ok I was intregued by this and have been attempting to understand update-alternatives for some time
so I decided to have another look
the /etc/alternatives/ directory lists all kinds of symlinks to existing apps
the update-alternatives app controls which of these symlinks is in which group of apps eg x-www-browser (or editor etc)
The issue I was geting is that no alterntives were being listed, I also noted that in /etc/alternatives/ that no browsers were listed
So I opened a terminal (I have been using "vte --reverse -A -D -f Tamsyn" of late) su to root and cd /etc/alternatives/ and started up mc
in mc I navigated the first pane to /usr/bin/ and selected my browser xxxterm and selected teh symlink option which placed a symlink into the second pane (still at /etc/alternatives)
I tried update-alternatives --config x-www-browser which failed again...
Reading the --help and the man page for update-alternatives it seems that you need to add the application to the catagory by using the --install option and giving it a priority
I elected to use
update-alternatives --install /etc/alternatives/ x-www-browser /usr/bin/xxxterm 90
now when I use
update-alternatives --config x-www-browser
I get the following
# update-alternatives --config x-www-browser
There is only 1 program which provides x-www-browser
(/usr/bin/xxxterm). Nothing to configure.
and when I use update-alternatives --list x-www-browser
# update-alternatives --list x-www-browser
/usr/bin/xxxterm
So whether the inclusion of a symlink at rpm-build time may assist or not is an unknown element - does update alternatives --install get run by apt at application install time?
I have yet to run any tests to see if this has worked on a practical basis or not
Hope this helps get to a solution for non-DE setups.
Jase