-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thunderbird: cannot open links in firefox (and vice-versa) #3982
Comments
|
Any idea of the details that might affect this? |
Stealing @glitsj16 comment.
My opinion:
You can create a profile for both. They already share firefox-common.profile.
Allow TB to open links in a running FFX: firejail/etc/profile-m-z/thunderbird.profile Lines 24 to 27 in 4b2914e
|
Thanks, rusty-snake, much appreciated. Have made some progress, but not quite there yet. Now when I click on a link in a Thunderbird email it still opens a new Firefox window but at least it now uses my standard Firefox profile. If I close that new Firefox window and then click another Thunderbird email link it opens it in a new tab in the original Firejailed Firefox window, which is what I want. /etc/firejail/thunderbird.profile already has those lines you mention. So how do I get Thunderbird to open all links as a new tab in the open Firefox window, even the first link that I click on in Thunderbird (this is the behaviour I have without Firejail)? Also I still have the problem for the reverse FF-TB interaction, that when I ask Firefox to 'Email Link' , I get the Account Wizard for Unix Mailspool. How do I fix that to get Firefox to pop a Thunderbird New Message like it does without Firejail? |
With a bit more work: The first part (TB -> FF) seems to be a wider problem with Firefox, so I'll open a new issue. The second part (FF -> TB) I've found a solution to a similar issue for evolution and had a crack at adapting it for Thunderbird. It works, but I've no clue if I've done it right, so if someone has time, I'd appreciate a check it's safe (inc. |
A similar issue was reported on the Debian bug tracker, but I was not able to reproduce it so far. |
With firejail >= 0.9.64 you should be able to open links from thunderbird in a running firefox. firejail/etc/profile-m-z/thunderbird.profile Lines 24 to 27 in 42e2db1
|
Thanks, both for getting back. reinerh: It’s similar, but different. My spurious window from the first Thunderbird link click is in the same Firefox profile as the already open window. rusty-snake: “should be able to”, but it doesn’t :) . I have those lines in my thunderbird.profile. Firejail is setup exactly as it came by default! Both/All: A fellow Mint user has now kindly been able to replicate this problem, and added some more detail here (see especially later posts). For LibreOffice the same issue is affected by symbolic links to Firejail, but Thunderbird isn’t. Hopefully this may give you some clues to help figure out what’s going on? I’m obviously happy to test any suggestions you have. |
For reference: #3471 (comment) Does
What happens if you What happens if you run
while firefox is running inside firejail? I will try to reproduce this in a mint VM when I have the time. |
No, I get this:
Same problem
Opens a new Firefox window with my home page, nothing else
Opens the GitHub page in a new tab in current Firefox window :)
Opens the GitHub page in a new window
Opens a new Firefox window with my home page, nothing else
Opens the GitHub page in a new tab in current Firefox window :)
Opens the GitHub page in a new window
BTW, I also had that extra whitelist in the thunderbird profile for all the above tests. That line is still there for now.
Thanks – much appreciate it! And in case it’s relevant, for all 6 of the above tests I got the error: |
|
Did, here what I found:
Conclusion: The following thunderbird.local should work.
|
Yep, that works - Brilliant! - Much appreciate your time on this. One last question (a quick one hopefully): From further up the thread, are the following lines safe to add to firefox.local? I edited them from someone who had the same issue with evolution, ie. that Firefox 'mailto' and 'File -> Email link' were not working. But I have no clue what these lines do. Bottom line is I just want to check the noblacklists and whitelists aren't adding any vulnerability to the system? Thanks.
|
There is no such
Depending: useless or overkill
If TB is already running, you can remove /var/... and .gnupg and .cache/thunderbird (maybe) I guess.
Allows full escape and does not work with fj>=0.9.64 |
Great, so to confirm for others, all I need in firefox.local is this, which works a treat:
As you say, it only works if TB is already running - but turns out that the code I had before didn’t work either with TB closed. For me, that’s all fine cos TB is always open. |
I hope it's OK to ask 'help' questions here, rather than raise an issue as such. I've not been able to get any advice on the Linux Mint forum I usually use.
Anyway, I launch both Thunderbird and Firefox with Firejail (from a terminal). Both work fine on their own, and have all the settings, tabs, etc as they do without Firejail. But they don't work together:
When I click on a link in a Thunderbird email it launches a new Firefox window with a different profile. Two profiles are listed in that window (about:profiles), neither of which are the profile with all my tabs and bookmarks are in. Any idea how I can get Thunderbird to open links in the existing Firejailed Firefox window?
For comms the other way around, when I ask Firefox to 'Email Link' , I get the Account Wizard for Unix Mailspool. How do I get Firefox to pop a Thunderbird New Message like it does without Firejail?
When I do firejail --list, Thunderbird and Firefox are both listed, but it's like they're in separate sandboxes or something - well that's what I deduce cos they're not talking to each other.
If it makes any difference, I installed Firejail from the Linux Mint Software Manager (version is 0.9.62; am more comfortable with that than pasting commands I don't understand into a terminal - my skills are pretty limited), and haven't done any other setup (eg. I don't want apps to be auto-Firejailed - I want to keep the option of running without Firejail).
Thanks!
The text was updated successfully, but these errors were encountered: