Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-03-18 13:11:55

JacquesOlivier
Member
Registered: 2021-02-12
Posts: 5

firefox-esr as default browser and favorite browser for all users

Hi,

I have a fresh install of Ubuntu with XFCE4.
I want that all the users have firefox-esr as default web browser.

I tried to change the value in /etc/xdg-xubuntu/xfce4/helpers.rc from WebBrowser=firefox to WebBrowser=firefox-esr

But it did nothing for the users.

Any ideas ?

I need to do that by script.

Offline

#2 2021-03-18 20:15:56

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: firefox-esr as default browser and favorite browser for all users

I'd say something like:

sudo xdg-settings set default-web-browser firefox-esr.desktop

and/or:

sudo update-alternatives --set x-www-browser firefox-esr.desktop
sudo update-alternatives --set gnome-www-browser firefox-esr.desktop

In any case, you can check if Firefox ESR is registered as eligible for those commands with:

update-alternatives --list x-www-browser
update-alternatives --list gnome-www-browser

See https://wiki.debian.org/DefaultWebBrowser and https://askubuntu.com/questions/79305/h … 820#367820 for reference and discussion.

Offline

#3 2021-03-19 08:53:52

JacquesOlivier
Member
Registered: 2021-02-12
Posts: 5

Re: firefox-esr as default browser and favorite browser for all users

Hi @alcornoqui

alcornoqui wrote:

sudo xdg-settings set default-web-browser firefox-esr.desktop

Is usefull but only for the current user, bnot all users.

And the <code> update-alternatives </code> returns :

 update-alternatives --set x-www-browser /usr/share/applications/firefox-esr.desktop 

update-alternatives: error: the alternativ /usr/share/applications/firefox-esr.desktop for x-www-browser is not registered; no configuration

Last edited by JacquesOlivier (2021-03-19 09:11:44)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 522.15 KiB (Peak: 522.99 KiB) ]