You are not logged in.

#1 2020-07-07 21:24:01

jo2k
Member
Registered: 2020-07-07
Posts: 5

Desktop entry (Type=Link) is opened in the wrong browser

Hi,

I runned into a small issue and struggle how to solve it.

My DE is cinnamon and I've installed Firefox and Chromium. The default browser is set to Firefox.
If I pull a URL out of Firefox on my desktop and double click that file, then it opens the link in Chromium.

The contents looks like:

[Desktop Entry]
Encoding=UTF-8
Name=Link to Arch Linux
Type=Link
URL=https://www.archlinux.org/
Icon=text-html

All of these commands return "firefox.desktop":

xdg-settings get default-web-browser
xdg-settings get default-url-scheme-handler http
xdg-settings get default-url-scheme-handler https
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https

If I open the URL with "xdg-open" or click on a link in the terminal, then Firefox is invoked as it should be.
How is it determined which program is used to call the URL out of a .desktop-file? I have no clue. ;-)

Thanks in advance.

Offline

#2 2020-07-08 14:56:34

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: Desktop entry (Type=Link) is opened in the wrong browser

I have no knowledge of how cinnamon does things but normally in ~/.config/mimetypes,list. Can be edited to define default applications, may have to restart session to take effect, good luck.
p.s. adding exec=Firefox. URL to .desktop file may also suffice.

Offline

#3 2020-07-08 16:54:09

jo2k
Member
Registered: 2020-07-07
Posts: 5

Re: Desktop entry (Type=Link) is opened in the wrong browser

I think I've found it now.
"text/html" was set to "wine-extension-htm.desktop" in "~/.local/share/applications/mimeinfo.cache". (strace was my friend)

I still don't know how this resolves to Chromium, but with your hint in mind I have set "text/html" to "firefox.desktop" in the "~/.config/mimeapps.list" and removed the mimeinfo.cache file.
Now it works as expected. :-)

Thank you.

Offline

Board footer

Powered by FluxBB