You are not logged in.

#1 2021-08-08 21:30:55

Weissnix4711
Member
Registered: 2021-08-08
Posts: 3

GNOME - Cannot set chromium as default browser

I cannot get gnome to set chromium as my default browser. In settings app > Default Applications > Web, chromium is not an option. However, as you can see below, chromium should be the mime default for http/https URLs.

[thomas@thomas-pc ~]$ xdg-settings get default-web-browser 
chromium.desktop
[thomas@thomas-pc ~]$ xdg-mime query default x-scheme-handler/http
chromium.desktop
[thomas@thomas-pc ~]$ echo $BROWSER

[thomas@thomas-pc ~]$ xdg-mime query default text/html
chromium.desktop
[thomas@thomas-pc ~]$ cat ~/.local/share/applications/mimeapps.list
cat: /home/thomas/.local/share/applications/mimeapps.list: No such file or directory
[thomas@thomas-pc ~]$ ls ~/.config/mimeapps.list
ls: cannot access '/home/thomas/.config/mimeapps.list': No such file or directory
[thomas@thomas-pc ~]$ xdg-open http://example.com
** (epiphany:88667): WARNING **: 22:19:00.847: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory

...proceeds to open epiphany

I've also searched for various other places where mimeapps.list could be, but I cannot find it.

Can anyone please help me out. Is there anything I'm missing?

Offline

#2 2021-08-08 21:49:42

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: GNOME - Cannot set chromium as default browser

[thomas@thomas-pc ~]$ ls ~/.config/mimeapps.list
ls: cannot access '/home/thomas/.config/mimeapps.list': No such file or directory

That should've been cat, not ls.

Check the following values. I use Google Chrome as my default browser. I also have Chromium installed and it used to be my default browser before Google removed account sync.

x-scheme-handler/http=chromium.desktop;google-chrome.desktop;
application/xhtml+xml=chromium.desktop;google-chrome.desktop;
x-scheme-handler/https=chromium.desktop;google-chrome.desktop;
text/html=google-chrome.desktop;
text/html=google-chrome.desktop
x-scheme-handler/mailto=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
application/xhtml+xml=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/webcal=google-chrome.desktop

Last edited by yochananmarqos (2021-08-08 21:50:10)

Offline

#3 2021-08-08 22:10:18

Weissnix4711
Member
Registered: 2021-08-08
Posts: 3

Re: GNOME - Cannot set chromium as default browser

yochananmarqos wrote:

[thomas@thomas-pc ~]$ ls ~/.config/mimeapps.list
ls: cannot access '/home/thomas/.config/mimeapps.list': No such file or directory

That should've been cat, not ls.

I was just demonstrating that the file doesn't exist.

Check the following values.

Do you mean check mimeapps.list for those values, as I do not have that file, at least not in the location I would expect? But xdg-mime seems to work correctly, so could that file be in a different location now?

I installed this system today btw.

Last edited by Weissnix4711 (2021-08-08 22:15:48)

Offline

#4 2021-08-08 22:12:44

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: GNOME - Cannot set chromium as default browser

Well. then create it and add the appropriate values. See https://wiki.archlinux.org/title/XDG_MI … ons#Format

Offline

#5 2021-08-08 22:19:07

Weissnix4711
Member
Registered: 2021-08-08
Posts: 3

Re: GNOME - Cannot set chromium as default browser

yochananmarqos wrote:

Well. then create it and add the appropriate values. See https://wiki.archlinux.org/title/XDG_MI … ons#Format

I'll try it. I wouldn't expect it to work, as xdg-mime already somehow seems to understand that chromium should be the default app. But I'll try it nonetheless and see if it makes a difference.

Offline

Board footer

Powered by FluxBB