edit: This sucks. See here for something sensible.
Sets the default browser. Browsers and DEs alike fail on this one, making you second-guess whenever you open a link.
I'm sure there are much better/simpler ways to do this - though it's simpler than convincing DE/browser developers to fix their stuff.
Version 2: http://linuxbbq.org/bbs/viewtopic.php?f ... 377#p26377
https://raw.githubusercontent.com/AladW ... /surfplank
surfplank
Forum rules
Your own work only.
Your own work only.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: surfplank
Version 2, featuring extra bloat (and now works on systems without ~/.local/... folder). Also xdg-utils stinks outside DEs, and you might look for a better alternative (like mimeo).
Link because too large.
https://raw.githubusercontent.com/AladW ... /surfplank
Link because too large.
https://raw.githubusercontent.com/AladW ... /surfplank
It's funny how we used to be able to do real stuff with rudimentary computers, but now we can't. -- ratcheer
Re: surfplank
goeie naam :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
Re: surfplank
fbt shared a simple xdg-open alternative that uses regex patterns, instead of this convoluted desktop garbage that always misses that one type you need, and is just all over the place.
https://git.fleshless.org/sx-open/about/
Put it in your PATH where it overrides /usr/bin, e.g ~/bin
The alternatives folder may contain symlinks (e.g "browser" to chrome). sx-open launches the first match in sx-open.cfg, so create patterns from specific to generic.
https://git.fleshless.org/sx-open/about/
Put it in your PATH where it overrides /usr/bin, e.g ~/bin
Code: Select all
export PATH=~/bin:~/.config/alternatives:$PATH
ln -s sx-open xdg-open
It's funny how we used to be able to do real stuff with rudimentary computers, but now we can't. -- ratcheer