#854818 firefox-esr: creates mimeapps.list entries for thunderbird.desktop if started from TB #854818
- Package:
- thunderbird
- Source:
- thunderbird
- Description:
- mail/news client with RSS, chat and integrated spam filter support
- Submitter:
- Jens Reyer
- Date:
- 2022-03-27 13:21:05 UTC
- Severity:
- important
Hi in a clean system, with no previous mime entries in ~/.config/mimeapps.list and ~/.local/share/applications, and firefox enabled to check if it is the default app: firefox is not running. In thunderbird I click on a link. This starts firefox and opens the link there. But now, firefox thinks it's not the default browser. If I allow firefox to change this it creates ~/.config/mimeapps.list with *thunderbird.desktop* entries: ----- [Default Applications] x-scheme-handler/http=thunderbird.desktop x-scheme-handler/https=thunderbird.desktop x-scheme-handler/ftp=thunderbird.desktop x-scheme-handler/chrome=thunderbird.desktop text/html=thunderbird.desktop application/x-extension-htm=thunderbird.desktop application/x-extension-html=thunderbird.desktop application/x-extension-shtml=thunderbird.desktop application/xhtml+xml=thunderbird.desktop application/x-extension-xhtml=thunderbird.desktop application/x-extension-xht=thunderbird.desktop [Added Associations] x-scheme-handler/http=thunderbird.desktop; x-scheme-handler/https=thunderbird.desktop; x-scheme-handler/ftp=thunderbird.desktop; x-scheme-handler/chrome=thunderbird.desktop; text/html=thunderbird.desktop; application/x-extension-htm=thunderbird.desktop; application/x-extension-html=thunderbird.desktop; application/x-extension-shtml=thunderbird.desktop; application/xhtml+xml=thunderbird.desktop; application/x-extension-xhtml=thunderbird.desktop; application/x-extension-xht=thunderbird.desktop; ----- This not only causes thunderbird fail to open links, but also repeatedly spawn thunderbird processes, which requires a "killall thunderbird". (Or something like that, I don't remember exactly and don't want to reproduce it now.) If I start firefox directly, I'm currently not asked about the default browser (somehow it now realizes that it's default as set in /usr/share/applications/gnome-mimeapps.list). But in the past I sometimes was asked, and then the ~/.config/mimeapps.list was created correctly with firefox.desktop entries. I've observed this behavior for a few weeks now, while I was working on something unrelated and frequently deleted all related files. It still happens with current 45.7.0esr-3. Thanks and greets jre
Previously I also could reproduce this directly by running "firefox --setDefaultBrowser". However luckily it seems thunderbird 1:45.7.1-2 fixes this - firefox now correctly recognizes that it is already the default app. Therefore closing (although I still don't know what exactly went wrong). Greets jre
control: found 854818 45.8.0esr-1
control: severity 854818 important
[ CC'ing the thunderbird-bug #857755 (Please do not associate
application/octet-stream with thunderbird), which targets the same
issue. Unfortunately I can reproduce this issue in firefox with both
the unfixed thunderbird 1:45.8.0-1 and the "fixed" 1:45.8.0-2 again. ]
Reopening, I see the behavior reproducibly again (not sure why it
diappeared for a short while):
$ rm -rf .local/share/applications/*
$ rm .config/mimeapps.list
- Start thunderbird (via launcher or from terminal)
- Click a https link in thunderbird
--> Firefox starts and prompts:
"Default Browser - Firefox is not currently set as
your default browser. Would you like to make it
your default browser?"
--> Click "Use Firefox as my default browser"
$ cat ~/.config/mimeapps.list
[Default Applications]
x-scheme-handler/http=thunderbird.desktop
x-scheme-handler/https=thunderbird.desktop
x-scheme-handler/ftp=thunderbird.desktop
x-scheme-handler/chrome=thunderbird.desktop
text/html=thunderbird.desktop
application/x-extension-htm=thunderbird.desktop
application/x-extension-html=thunderbird.desktop
application/x-extension-shtml=thunderbird.desktop
application/xhtml+xml=thunderbird.desktop
application/x-extension-xhtml=thunderbird.desktop
application/x-extension-xht=thunderbird.desktop
[Added Associations]
x-scheme-handler/http=thunderbird.desktop;
x-scheme-handler/https=thunderbird.desktop;
x-scheme-handler/ftp=thunderbird.desktop;
x-scheme-handler/chrome=thunderbird.desktop;
text/html=thunderbird.desktop;
application/x-extension-htm=thunderbird.desktop;
application/x-extension-html=thunderbird.desktop;
application/x-extension-shtml=thunderbird.desktop;
application/xhtml+xml=thunderbird.desktop;
application/x-extension-xhtml=thunderbird.desktop;
application/x-extension-xht=thunderbird.desktop;
==> Now it's not possible anymore to open https-links from thunderbird.
The following is not clearly reproducible, but quite annoying:
If I now remove ~/.config/mimeapps.list again, a link previously clicked
in thunderbird opens in firefox, and firefox asks about being default
again. If I say "Not now" it will endlessly spawn new tabs with the
same link. I think only killing thunderbird stops this then.
Unfortunately I'm still totally clueless about the exact reason for
this, and all attempts to fix this by exporting several variables from
the firefox script didn't help. I don't know if this needs to be fixed
in thunderbird or firefox.
Greets
jre
it's about another issue anyway. Sorry for the noise. The issue described in this firefox-bug here however still exists: mime types that should be associated with firefox get associated with thunderbird instead. Greets jre
Hello! Bug still exists and is quite annoying.
Steps to reproduce:
1. Open Firefox, make it default browser, close Firefox
2. Open Thunderbird, click any url.
3. When Firefox opens and asks if it should be a default browser, click
to make it default browser.
Done. Now link opening from TB is broken.
Steps to recover:
1. Close launched from TB instance of FF.
2. Open clear instance of FF and make it default browser again.
3. Next time opening link from TB DO NOT click "make FF default browser".
But this way any time you try to open link from TB with closed FF, it
will ask you if to be a default browser.
Workaround for this behaviour:
create user.js file in FF profile with
user_pref("browser.shell.checkDefaultBrowser", false);
System: Debian GNU/Linux 10 (buster) Debian 4.19.67-2+deb10u2
(2019-11-11) x86_64 GNU/Linux
Package: firefox-esr 68.3.0esr-1~deb10u1
Package: thunderbird 60.9.0-1~deb10u1 / 68.3.0-2~deb10u1
This is still happening on buster 10.6 with firefox-esr 78.4.1esr-1~deb10u1 and thunderbird 78.4.2-1~deb10u1. Cheers, Michael
On Fri, 13 Nov 2020 12:06:49 +0000 Michael Rogers <michael@briarproject.org> wrote: > This is still happening on buster 10.6 with firefox-esr > 78.4.1esr-1~deb10u1 and thunderbird 78.4.2-1~deb10u1. > > Cheers, > Michael > > In bullseye too. I started a live session for test so its not a problem in my installation
further info for this bug in bullseye live session I installt thunderbird and opend a link from an e-mail and set firefox as default browser in firefox over about:preferences. before this gio mime x-scheme-handler/http Standardanwendung für »x-scheme-handler/http«: firefox-esr.desktop Registrierte Anwendungen: firefox-esr.desktop Empfohlene Anwendungen: firefox-esr.desktop sorry I forget before to change my language to english After changeing firefox to default browser in about:preferences gio mime x-scheme-handler/http Default application for ?x-scheme-handler/http?: thunderbird.desktop Registered applications: firefox-esr.desktop thunderbird.desktop Recommended applications: firefox-esr.desktop thunderbird.desktop why i havens name is thunderbird registert as application for this mime type. This does not make sense for me. Note firefox with claws mail has not this stupid side effect. Do firefox and thunderbird share some code?
Control: reassign -1 thunderbird
Control: tags -1 + moreinfo
I think this is a description of the same bug as #948691. If that's
the case, then it should be fixed by thunderbird versions based on
1:91.7.0-2, including the 1:91.7.0-2~deb11u1 and 1:91.7.0-2~deb10u1
versions in bullseye-security and buster-security. Please check whether
this is still reproducible.
shared history was an important part of the root cause for #948691.
smcv
Hi Simon and all, Unfortunately no, I can still reproduce this: I - enabled the default-browser check in firefox, - updated thunderbird, - removed ~/.local/share/applications/ and ~/.config/mimeapps.list Then I - rebooted the system - started thunderbird/1:91.7.0-2 and - clicked a link: firefox-esr/91.7.0esr-1 asked me about becoming the default browser. I answered yes and got this mimeapps.list: ~~~~~ [Default Applications] x-scheme-handler/http=thunderbird.desktop x-scheme-handler/https=thunderbird.desktop x-scheme-handler/chrome=thunderbird.desktop text/html=thunderbird.desktop application/x-extension-htm=thunderbird.desktop application/x-extension-html=thunderbird.desktop application/x-extension-shtml=thunderbird.desktop application/xhtml+xml=thunderbird.desktop application/x-extension-xhtml=thunderbird.desktop application/x-extension-xht=thunderbird.desktop [Added Associations] x-scheme-handler/http=thunderbird.desktop; x-scheme-handler/https=thunderbird.desktop; x-scheme-handler/chrome=thunderbird.desktop; text/html=thunderbird.desktop; application/x-extension-htm=thunderbird.desktop; application/x-extension-html=thunderbird.desktop; application/x-extension-shtml=thunderbird.desktop; application/xhtml+xml=thunderbird.desktop; application/x-extension-xhtml=thunderbird.desktop; application/x-extension-xht=thunderbird.desktop; ~~~~~ Is there anything I missed? Because I agree this should be the same as #948691. Huge thanks anyway for working on this and keeping bugs.d.o in good shape, despite my surprising test results! Greets jre