[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changing default XDB browser w/o GNOME etc.

Hash: SHA1

On Sun, Dec 13, 2015 at 10:19:49AM +0100, Eduard Bloch wrote:
> Hello, dear lazynet,
> I have a problem and I am not sure which is the best approach to tackle
> it.
> Observation: various programs use the XDG mechanism (freedesktop
> configuration method) to start a specific browser to visit a hyperlink.
> Easy to verify with the xdg-open tool.
> But how can I change this setting in a persistent way especially when I
> don't use Gnome or Kde or Xfce? I tried LxQt once and apparently the
> stupid thing has reset some configuration and now xdg-open starts
> Qupzilla which I don't like. Before, some other stupid program has reset
> it to Chromium which I don't like either.
> How can I configure this, and do that in a way that is set persisently?
> i.e. no program or package changes the setting to its own yard.
> NOTE: I will not install the monster just to change this simple setting.

If I were you, I'd just try to hi-jack xdg-open (it is, after all, just
a shell script under /usr/bin) by installing an alternative one under
/usr/local/bin (which comes before /usr/bin in the "usual" set up).

Of course you'll call back into the original /usr/bin/xdg-open whenever
convenient. In the most common case you just write a simple wrapper
around /usr/bin/xdg-open.

> Feels like things that have been established in a sane way (alternatives
> system and sensible-browser) are now reverted to the chaos we used to
> manage in the nineties :-(

I feel your pain. Applications programmers have become lazy and now
consider file system layout as a part of the "OS API", quabbling on whether
something should be under /opt or /usr/local, instead of coping with

- -- tomás
Version: GnuPG v1.4.12 (GNU/Linux)


Reply to: