tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.01k stars 518 forks source link

Desktop app on Linux does not respect default browser selection #7142

Open pappasadrian opened 3 months ago

pappasadrian commented 3 months ago

Describe the bug When clicking on any link in an email, the site is not opened with the default browser (firefox in my case), but with a different installed browser (chromium). All other apps respect the default browser selection, which leads me to think that this is an issue on tuta's side (or maybe something to do with appimage?) This is a somewhat recent behaviour, it used to work properly I think until a couple of months ago? Can't remember for sure.

To Reproduce Steps to reproduce the behavior:

  1. Click on a link in any mail
  2. Instead of opening with the default browser, link opens with chromium

Expected behavior Tuta desktop opens links with the default browser (as defined in system settings)

Desktop (please complete the following information):

charlag commented 3 months ago

Hi, sorry, we could not reproduce it. The app never did hardcode a specific browser.

We might need more information. Could you maybe check the logs to see if there's any message?

pappasadrian commented 3 months ago

Hello, I see no relevant messages in the logs. See attached 1719914603848_worker_tutanota.log 1719914603848_main_tutanota.log 1719914603848_desktop_tutanota.log

charlag commented 3 months ago

could you please try xdg-open https://tuta.com, which browser gets open?

pappasadrian commented 3 months ago

Yes, this opens the link via firefox (default), as expected.

pappasadrian commented 3 months ago

I'm also being affected by #6993 , maybe it is relevant? IDK

charlag commented 3 months ago

Doesn't look like the same issue.

I am a bit at loss because we don't do anything specific to open URLs:

https://github.com/tutao/tutanota/blob/4e6fa75fd373cf6a176bbdbdbdc9deaa79567b39/src/desktop/ApplicationWindow.ts#L440-L453

pappasadrian commented 3 months ago

Eh, I just ran into a second issue which I assume is connected. When opening a pdf attachment, the defaults are again not respected, and the file is opened with calibre ebook reader (totally random) instead of the default evince document viewer.

I am thinking that it might be an alphabetical order issue (picking the first app in alphabetical order that can handle the file, instead of the default?) IDK, I am trying to find a pattern. I'll see if I can cause the same issue with other filetypes.

Meanwhile, if I can help out with any more data or info, let me know.