[SOLVED] update-alternatives for default browser

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] update-alternatives for default browser

Postby epp » May 11th, '22, 16:47

I may be uninstalling Firefox due to an issue with the USB mouse. The issue, is that when I am reading a web page in Firefox, the page would unexpectedly begin to randomly scroll, without touching the mouse wheel. On the surface, this would indicate a defective mouse, but for some reason, this does not occur at all when I'm using the same mouse with Chromium.

With past distros I've used, the command (as sudo): update-alternatives --config x-www-browser would display the installed browsers and offer an option to keep the default browser as is, or to choose another to be the default.

In Mageia, this same command produces no output. If Firefox were uninstalled, would the system automatically consider Chromium to be the default browser? As an example, if I clicked a link in an e-mail within Thunderbird, I would then want the link to open in Chromium, as opposed to nothing occurring.

Thanks in advance.
Last edited by epp on May 11th, '22, 19:50, edited 1 time in total.
Mageia 8 x86_64 - Xfce, LXDE (VirtualBox)
Mageia Cauldron x86_64 - Xfce, MATE, LXDE (VirtualBoxes)
epp
 
Posts: 88
Joined: Nov 1st, '21, 18:44
Location: Boston, U.S.A.

Re: update-alternatives

Postby sturmvogel » May 11th, '22, 19:26

Why don't you use
Application menu -> Preferences -> Lxqt settings-> File associations-> default Application-> browser
sturmvogel
 
Posts: 741
Joined: Jul 30th, '12, 00:39

Re: update-alternatives

Postby epp » May 11th, '22, 19:50

That will do it. :)

(Haven't yet gone through all of the options.)

Thank you.
Mageia 8 x86_64 - Xfce, LXDE (VirtualBox)
Mageia Cauldron x86_64 - Xfce, MATE, LXDE (VirtualBoxes)
epp
 
Posts: 88
Joined: Nov 1st, '21, 18:44
Location: Boston, U.S.A.

Re: update-alternatives

Postby doktor5000 » May 11th, '22, 19:58

We don't have the alternatives mechanism for the browser. At least not like this. There's /usr/bin/www-browser which is supposed to call your configured default browser.
But depending on the application that actually tries to open a link, they all use different mechanisms to detect your default browser, so changing this in one place might not work for everything.

Have a look at https://wiki.mageia.org/en/User:Doktor5 ... me_handler on how to check and change the default browser.
Apart from that, AFAIR this happened for me (rarely) for long presses of the mousewheel in firefox.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] update-alternatives for default browser

Postby epp » May 11th, '22, 20:13

I went into that LXQt preference and changed the default browser from Firefox to Chromium. I then closed Thunderbird and reopened it. I clicked a link in an email for this forum and it correctly opened in Chromium.

From your Wiki page: xdg-settings get default-web-browser displays Chromium as the default browser.

All set. :)

Thanks again.
Mageia 8 x86_64 - Xfce, LXDE (VirtualBox)
Mageia Cauldron x86_64 - Xfce, MATE, LXDE (VirtualBoxes)
epp
 
Posts: 88
Joined: Nov 1st, '21, 18:44
Location: Boston, U.S.A.


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron