[CLUG-tech] how to configure xdg-open?

Rainer M Krug r.m.krug at gmail.com
Thu Aug 14 17:17:30 SAST 2008

On Thu, Aug 14, 2008 at 3:23 PM, Michael Wood <esiotrot at gmail.com> wrote:
> On Thu, Aug 14, 2008 at 2:57 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
>> On Thu, Aug 14, 2008 at 2:21 PM, Alan McKinnon <alan.mckinnon at gmail.com> wrote:
>>> On Thursday 14 August 2008 09:44:15 Rainer M Krug wrote:
>>>> Hi
>>>> I installed konqueror under Xubuntu, and it changed my xdg-open to
>>>> konqueror.
>>>> Is there any way (apart from reinstalling firefox) to change this back
>>>> to firefox?
>>> The version I have seems to be hardcoded to look for a desktop environment and
>>> use an ... ahem ...  appropriate browser.
>>> Look in /usr/bin/xdg-open near function detectDE()
>> I did not thought that it would be a shell script - thanks.
>> But the mystery continues: As I am using fluxbox, it will call
>> sensible-browser, which is also a shell script, but I can't figure out
>> how it determines the browser to use, as the variable $BROWSER is not
>> set.
>> Could anybody help in this step?
> The copy of sensible-browser I have here tries the following if
> $BROWSER is empty or doesn't exist:
> /usr/bin/gnome-www-browser
> /usr/bin/x-www-browser
> /usr/bin/www-browser
> On this system, gnome-www-browser and x-www-browser do not exist and
> /usr/bin/www-browser is a symlink to /etc/alternatives/www-browser,
> which is in turn a symlink to /usr/bin/w3m, which is a curses-based
> web browser.
> /etc/alternatives is the normal way that Debian and distributions
> derived from it use to handle multiple packages that provide the same
> functionality.  You can use the "update-alternatives" command to
> manipulate the symlinks in /etc/alternatives.
> e.g. try "update-alternatives --list www-browser" and
> "update-alternatives --config www-browser"

Thanks a million - that is exactly what I was looking for


> --
> Michael Wood <esiotrot at gmail.com>
> --
> clug-tech mailing list: clug-tech at clug.org.za
> To (un)subscribe: http://lists.clug.org.za/mailman/listinfo/clug-tech
> Wiki: http://wiki.clug.org.za
> IRC: za.furion.org #clug
> List Rules: http://wiki.clug.org.za/wiki/Mailing_list_rules

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa

More information about the clug-tech mailing list