You are not logged in.
For some reason which i don't know the x-www-browser option dissapeared from G Alternative in System->Edit-Debian-Alternatives. Can any one help me bring it back please?
-edit- marked [SOLVED] by hhh on Friday the 13th, July 2018.
Last edited by hhh (2018-07-14 01:09:08)
Offline
It can be done via the terminal. It's late and I don't want to make a mistake, I'll let someone else like @johnraff answer this.
I don't care what you do at home. Would you care to explain?
Offline
For now, you can edit your Openbox menu and rc.xml files and replace x-www-browser with the name of your browser (Firefox, for instance).
I don't care what you do at home. Would you care to explain?
Offline
I changed the x-www-browser to my browser name, didn't help when i try to open a new browser from links etc.
Offline
First off, let's go from the terminal and bypass galternatives.
Try
update-alternatives --display x-www-browser
and please post what you get.
How many browsers do you have installed?
I've got three, so my output looked like this:
john@helium-dev:~$ update-alternatives --display x-www-browser
x-www-browser - auto mode
link best version is /usr/bin/firefox-esr
link currently points to /usr/bin/firefox-esr
link x-www-browser is /usr/bin/x-www-browser
slave x-www-browser.1.gz is /usr/share/man/man1/x-www-browser.1.gz
/usr/bin/chromium - priority 40
/usr/bin/dillo - priority 50
slave x-www-browser.1.gz: /usr/share/man/man1/dillo.1.gz
/usr/bin/firefox-esr - priority 70
slave x-www-browser.1.gz: /usr/share/man/man1/firefox-esr.1.gz
Can you remember exactly what you did that caused x-www-browser to disappear?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
^ Right, sorry about that oversight.
http://lxlinux.com/alternatives.html
The terminal command to add a new alternative to an established group, or to create a new group (generic program), is the same. For example, to create a generic app for file browsers named x-file-manager (to follow the pattern of naming already used by Debian), which includes pcmanfm:
sudo update-alternatives --install /usr/bin/x-file-manager x-file-manager /usr/bin/pcmanfm 90
So, assuming that info is still correct, try the following in a terminal...
sudo -s
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox-esr 20
If I posted the right code and it works, edit your menu entries back to x-www-browser if you wish.
I don't care what you do at home. Would you care to explain?
Offline
Sorry for the delay!
@johnraff Here is the output (nothing found):
update-alternatives: error: no alternatives for x-www-browser
I think i had only one option as x-www-browser and then i uninstalled that browser to install another one (i must have done it the other way around), most possibly that removed the x-www-browser
Offline
@hhh There is no /usr/bin/x-www-browser on my machine.
Offline
/usr/bin/x-www-browser is a symlink that points to /etc/alternatives/x-www-browser. I would do this:
1. Reinstall firefox. This should run update-alternatives when it installs. This should fix your symlink.
2. Add the browser in question using galternatives as I suggested before.
3. Finally, you can purge firefox.
Offline
Thank you, that solved the problem! I now have https://minbrowser.github.io/min/ as my default browser (recommended :-)
Offline
Marking this [SOLVED]. Thanks, tknomanzr!
I don't care what you do at home. Would you care to explain?
Offline