Sunday, November 24, 2024

Changing default browswer on RedHat

Default Firefox browser on RedHat was last updated to 115.7.0esr (Extended Support Release), titled Mozilla Firefox for Fedora, Fedora - 1.0 (?)

As obvious, this browser is not supported by many web-applications. There is difficulty in YouTube playbacks as well.

An alternative was to use Flatpak (https://en.wikipedia.org/wiki/Flatpak) based Firefox. However, the default firefox was set as

[user@localhost ~]$ xdg-settings get default-web-browser
firefox.desktop

However, the desktop file for the Flatpak based Firefox is located at /var/lib/flatpak/exports/share/applications/org.mozilla.firefox.desktop

To change to the Flatpak based Firefox,

[user@localhost ~]$ xdg-settings set default-web-browser org.mozilla.firefox.desktop
 

The change can be verified using 

[user@localhost ~]$ xdg-settings check default-web-browser org.mozilla.firefox.desktop
yes


It worked! 


Credits:

https://unix.stackexchange.com/questions/614899/setting-a-flatpak-app-as-the-default-web-browser

No comments: