On 25/07/2022 16.13, Andrei Borzenkov wrote:
On 25.07.2022 14:13, Carlos E. R. wrote:
cer 15583 2.5 4.0 2878276 158312 tty2 Sl+ 13:06 0:02 /usr/lib64/firefox/firefox -P default --no-remote https://tunein.com/about/
The last line is the command thunderbird issued, and stays there till I close the error popup message. The command is correct AFAIK, it just doesn't produce the expected result for some reason.
Your expectations are incorrect.
Firefox cannot start more than one browser instance for a given profile. Firefox sees that some other instance is already running, but as you prohibited contacting this running instance to spawn another browser window, you get "Firefox is already running, but is not responding". We may argue that the correct message in this case should have been "Firefox is already running but we were told not to contact it", you may consider bug report for Firefox.
So your firefox invocation only works for the first time. Attempt to start second firefox while the first one is still running always fails. This is expected behavior.
There is no need to have --no-remote. Running "firefox -P profile" will automatically either launch new browser with given profile or contact existing browser already using this profile, even if there is another active firefox using second profile.
bor@leap15:~> ps -ef | grep 'firefox.*-P' bor 5750 2338 0 17:09 pts/0 00:00:00 grep --color=auto firefox.*-P bor@leap15:~> firefox -P Profile1 & [1] 5756 bor@leap15:~> ps -ef | grep 'firefox.*-P' bor 5756 2338 36 17:09 pts/0 00:00:06 /usr/lib64/firefox/firefox -P Profile1 bor 5946 2338 0 17:09 pts/0 00:00:00 grep --color=auto firefox.*-P bor@leap15:~> firefox -P Profile2 & [2] 5952 bor@leap15:~> ps -ef | grep 'firefox.*-P' bor 5756 2338 16 17:09 pts/0 00:00:06 /usr/lib64/firefox/firefox -P Profile1 bor 5952 2338 36 17:09 pts/0 00:00:06 /usr/lib64/firefox/firefox -P Profile2 bor 6155 2338 0 17:10 pts/0 00:00:00 grep --color=auto firefox.*-P bor@leap15:~> firefox -P Profile1 & [3] 6161 bor@leap15:~> ps -ef | grep 'firefox.*-P' bor 5756 2338 15 17:09 pts/0 00:00:09 /usr/lib64/firefox/firefox -P Profile1 bor 5952 2338 16 17:09 pts/0 00:00:06 /usr/lib64/firefox/firefox -P Profile2 bor 6212 2338 10 17:10 pts/0 00:00:00 grep --color=auto firefox.*-P [3]+ Done firefox -P Profile1 bor@leap15:~>
As you see, "firefox -P Profile2" starts new process even though firefox for Profile1 is already running and the second "firefox -P Profile1" contacts the first instance and exits immediately.
This is all with StartWithLastProfile=0
Ok, I see your rationale; I'll try. I did, in a terminal: firefox -P "default" --no-remote https://tunein.com/about/ & and got the error. Then tried: firefox -P "default" https://tunein.com/about/ & and got again the same error... I confirm the actual line used:
cer@Legolas:~> ps -ef | grep 'firefox.*-P' cer 13655 3253 2 19:50 pts/29 00:00:02 /usr/lib64/firefox/firefox -P default https://tunein.com/about/ cer 13780 2625 0 19:52 pts/6 00:00:00 grep --color=auto firefox.*-P cer 14358 2422 3 12:48 tty2 00:15:34 /usr/lib64/firefox/firefox -P default --no-remote cer@Legolas:~>
Unless you tell me that the main process should also have been started without the "--no-remote" (which I have been doing for years). I can try that :-? So I exit the main firefox, and start it again from the cli, for simplicity, without the --no-remote. Then I try a second time, with a link, and it works. So I edit the default application entry to remove that option, and click a link in Thunderbird, and it also works. Call me surprised. (I started using --no-remote long ago, when using ssh sessions, because th would start links in the local computer instead of inside the ssh-ed machine) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))