I have Thunderbird (v52.9.1) setup to launch Firefox on http(s) links.
Specifically, it's setup to run a script that contains (besides the shebang):
firefox --profile /path/to/profile --private-window "$@"
The problem is that if Firefox is already running, and I open an http(s) link in Thunderbird, I get the error:
Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.
What puzzles me is that if I execute the same script via terminal, or desktop environment, Firefox is opened without any issue (even if there is another one running).
Why does this happen?
Thunderbird sets a lot of environment variables (this bug may be related), which will change Firefox behavior. It's not clear if this is intended or not.
The solution is to find an unset them all; the list I've found in my case, with related
unset
s, is: