Can't change default web browser in Silverblue

I installed LibreWolf and Ungoogled Chromium as Flatpaks. But in GNOME Settings, where it shows the default web browser app, it shows Firefox, with no dropdown where other options can be selected. I wasn’t able to find a command line alternative that looked like it would work for Silverblue. Any tips?

Hi, sorry to hear you are having problems. I use both those browsers on Kinoite. Yes, there is a way to set your browser from the command line.

LibreWolf flatpak:

$ xdg-settings get default-web-browser
io.gitlab.librewolf-community.desktop

ungoogled-chromium flatpak:

$ xdg-settings get default-web-browser 
io.github.ungoogled_software.ungoogled_chromium.desktop

Try running xdg-settings set default-web-browser [value] with either of those two strings.

strange can you send us or show screen record what it shows when you try to set default in gnome settings
and output of flatpak list

Sure, here’s what I’m seeing. When I hover or click on “Firefox” nothing happens.

Name  Application ID   Version                  Branch     Origin  Installation
Dial… app.drey.Dialect 2.5.0                    stable     flathub system
Dcon… …rt.dconf-editor 45.0.1                   stable     flathub system
Auth… …i.Authenticator 4.6.2                    stable     flathub system
Brave …m.brave.Browser 1.78.97                  stable     flathub system
Time… …tin.TimeTracker 2.1.3                    stable     flathub system
Exte… …xtensionManager 0.6.3                    stable     flathub system
ZapZ… …m.rtosta.zapzap 6.0                      stable     flathub system
VSCo… …vscodium.codium 1.100.13210              stable     flathub system
Anyt… …anytype.anytype 0.46.5                   stable     flathub system
Libr… …ewolf-community 138.0.3-1                stable     flathub system
Fedo… …ect.MediaWriter 5.2.5                    stable     fedora  system
Fedo… …roject.Platform 42                       f42        fedora  system
defa… …form.GL.default                          f42        fedora  system
fedo… …Platform.Locale                          f42        fedora  system
Intel …orm.VAAPI.Intel                          f42        fedora  system
Free… …esktop.Platform freedesktop-sdk-24.08.19 24.08      flathub system
Mesa  …form.GL.default 25.0.5                   24.08      flathub system
Mesa… …form.GL.default 25.0.5                   24.08extra flathub system
Inte… …orm.VAAPI.Intel                          24.08      flathub system
FFmp… …orm.ffmpeg-full                          24.08      flathub system
open… …atform.openh264 2.5.1                    2.5.1      flathub system
Free… …freedesktop.Sdk freedesktop-sdk-24.08.19 24.08      flathub system
GNU … org.gimp.GIMP    3.0.2                    stable     flathub system
HEIC  ….gimp.GIMP.HEIC                          stable     flathub system
Boxes org.gnome.Boxes  48.0                     stable     flathub system
GNOM… …ension.OsinfoDb 20250124                 stable     flathub system
Calc… …nome.Calculator 48.1                     stable     fedora  system
Cale… ….gnome.Calendar 48.1                     stable     fedora  system
Char… …nome.Characters 48.0                     stable     fedora  system
Conn… …ome.Connections 48.0                     stable     fedora  system
Cont… ….gnome.Contacts 48.0                     stable     fedora  system
Docu… org.gnome.Evince 48.0                     stable     fedora  system
Exte… …nome.Extensions 48.alpha                 stable     fedora  system
Logs  org.gnome.Logs   45.0                     stable     fedora  system
Imag… org.gnome.Loupe  48.1                     stable     fedora  system
Maps  org.gnome.Maps   48.2                     stable     fedora  system
Sushi …utilusPreviewer 46.0                     stable     fedora  system
GNOM… ….gnome.Platform                          47         flathub system
GNOM… ….gnome.Platform                          48         flathub system
Came… ….gnome.Snapshot 48.0.1                   stable     fedora  system
Text… …nome.TextEditor 48.2                     stable     fedora  system
Weat… …g.gnome.Weather 48.0                     stable     fedora  system
Secr… …e.World.Secrets 11.1.1                   stable     flathub system
Disk… org.gnome.baobab 48.0                     stable     fedora  system
Cloc… org.gnome.clocks 48.0                     stable     fedora  system
Fonts …ome.font-viewer 48.0                     stable     fedora  system
Adwa… ….KStyle.Adwaita                          5.15-24.08 flathub system
Adwa… ….KStyle.Adwaita                          6.8        flathub system
KDE … org.kde.Platform                          5.15-24.08 flathub system
KDE … org.kde.Platform                          6.8        flathub system
QGno… ….QGnomePlatform                          5.15-24.08 flathub system
QAdw… …aitaDecorations                          5.15-24.08 flathub system
Muse… …score.MuseScore 4.5.1                    stable     flathub system
Tor … …rowser-launcher 0.3.7                    stable     flathub system
VLC   org.videolan.VLC 3.0.21                   stable     flathub system
Zoom  us.zoom.Zoom     6.4.6.1370               stable     flathub system

rpm-ostree override remove firefox since it is included as image it takes always priority. This way you exclude/remove it and then can use flatpak or layer other on your choosing

1 Like

Ok, this worked (though I needed to change get to set)

Now I am seeing a dropdown, with both of those browsers showing up. I wonder if this was happening because I’m using custom .desktop files for the other browsers. Maybe it had trouble picking them up?

Anyway, thanks for the help!

2 Likes

I have seen a similiar issue with setting up the default Mail app on Silverblue, see here. The fix was to tweak the ~/.config/mimeapps.list.

Do you have Categories and/or MimeType key=value pairs in the *.desktop file? If not, then that might be one of the reasons.