You are not logged in.

#1 2018-07-13 06:46:27

ateymuri
Member
Registered: 2018-03-09
Posts: 13

[SOLVED] x-www-browser disappeared from G Alternatives

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

#2 2018-07-13 06:49:47

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,180
Website

Re: [SOLVED] x-www-browser disappeared from G Alternatives

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

#3 2018-07-13 06:51:49

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,180
Website

Re: [SOLVED] x-www-browser disappeared from G Alternatives

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

#4 2018-07-13 07:08:48

ateymuri
Member
Registered: 2018-03-09
Posts: 13

Re: [SOLVED] x-www-browser disappeared from G Alternatives

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

#5 2018-07-13 07:33:18

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,674
Website

Re: [SOLVED] x-www-browser disappeared from G Alternatives

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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#6 2018-07-13 07:36:08

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,180
Website

Re: [SOLVED] x-www-browser disappeared from G Alternatives

^ 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

#7 2018-07-13 19:45:30

ateymuri
Member
Registered: 2018-03-09
Posts: 13

Re: [SOLVED] x-www-browser disappeared from G Alternatives

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

#8 2018-07-13 19:50:39

ateymuri
Member
Registered: 2018-03-09
Posts: 13

Re: [SOLVED] x-www-browser disappeared from G Alternatives

@hhh There is no /usr/bin/x-www-browser on my machine.

Offline

#9 2018-07-13 21:03:19

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: [SOLVED] x-www-browser disappeared from G Alternatives

/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

#10 2018-07-13 22:49:09

ateymuri
Member
Registered: 2018-03-09
Posts: 13

Re: [SOLVED] x-www-browser disappeared from G Alternatives

Thank you, that solved the problem! I now have https://minbrowser.github.io/min/ as my default browser (recommended :-)

Offline

#11 2018-07-14 01:08:39

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,180
Website

Re: [SOLVED] x-www-browser disappeared from G Alternatives

Marking this [SOLVED]. Thanks, tknomanzr!


I don't care what you do at home. Would you care to explain?

Offline

Board footer

Powered by FluxBB