[oS-en] Problem with Thunderbird not opening links.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process". This has been going on for over a month, so obviously I have closed FF more than once. And I have 3 firefox profiles open this minute. If I enter the command on a terminal: cer@Legolas:~> xdg-open "http://google.es" cer@Legolas:~> and a window from FF opens asking me what profile to open. I do not want that, I want it to directly open "default" profile. cer@Legolas:~> xdg-settings get default-web-browser firefox.desktop cer@Legolas:~> I assume it means ~/.local/share/applications/firefox.desktop I attach the file so that you can see it. What is wrong? What can I do? - -- Cheers Carlos E. R. (from openSUSE Leap 15.3 at Legolas) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYt0xPxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVyUAAnRQkCj93t2qRQvJce6Hi pWjyyVaSAJ93pYB1qOQnIo7jdTE4uJoSSG5DFA== =hXkL -----END PGP SIGNATURE-----
On 24.07.2022 14:47, Carlos E. R. wrote:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
This has been going on for over a month, so obviously I have closed FF more than once. And I have 3 firefox profiles open this minute.
If I enter the command on a terminal:
cer@Legolas:~> xdg-open "http://google.es" cer@Legolas:~>
and a window from FF opens asking me what profile to open. I do not want that, I want it to directly open "default" profile.
cer@Legolas:~> xdg-settings get default-web-browser firefox.desktop cer@Legolas:~>
I assume it means ~/.local/share/applications/firefox.desktop
This depends on desktop environment. XFCE is using separate desktop file(s) to launch default applications. /usr/share/xfce4/helpers/firefox.desktop (and corresponding user specific version)
I attach the file so that you can see it.
What is wrong? What can I do?
On 24/07/2022 14.40, Andrei Borzenkov wrote:
On 24.07.2022 14:47, Carlos E. R. wrote:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
This has been going on for over a month, so obviously I have closed FF more than once. And I have 3 firefox profiles open this minute.
If I enter the command on a terminal:
cer@Legolas:~> xdg-open "http://google.es" cer@Legolas:~>
and a window from FF opens asking me what profile to open. I do not want that, I want it to directly open "default" profile.
cer@Legolas:~> xdg-settings get default-web-browser firefox.desktop cer@Legolas:~>
I assume it means ~/.local/share/applications/firefox.desktop
This depends on desktop environment. XFCE is using separate desktop file(s) to launch default applications.
/usr/share/xfce4/helpers/firefox.desktop (and corresponding user specific version)
Ah. Yes, I use XFCE. I don't get clear what command it is using if it is that file. Perhaps: X-XFCE-Binaries=firefox;firefox-gtk2;firefox-gtk;mozilla-firefox; X-XFCE-Category=WebBrowser X-XFCE-Commands=%B; X-XFCE-CommandsWithParameter=%B "%s"; The file is dated July 9. I have a suspicion that I have to add "-P someprofile" somewhere. Is there a corresponding user file under {home}? Using "mc" to search for the file in home finds only the one under .local I mentioned in my first post. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
On 24.07.2022 15:55, Carlos E. R. wrote:
On 24/07/2022 14.40, Andrei Borzenkov wrote:
On 24.07.2022 14:47, Carlos E. R. wrote:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
This has been going on for over a month, so obviously I have closed FF more than once. And I have 3 firefox profiles open this minute.
If I enter the command on a terminal:
cer@Legolas:~> xdg-open "http://google.es" cer@Legolas:~>
and a window from FF opens asking me what profile to open. I do not want that, I want it to directly open "default" profile.
cer@Legolas:~> xdg-settings get default-web-browser firefox.desktop cer@Legolas:~>
I assume it means ~/.local/share/applications/firefox.desktop
This depends on desktop environment. XFCE is using separate desktop file(s) to launch default applications.
/usr/share/xfce4/helpers/firefox.desktop (and corresponding user specific version)
Ah. Yes, I use XFCE. I don't get clear what command it is using if it is that file. Perhaps:
X-XFCE-Binaries=firefox;firefox-gtk2;firefox-gtk;mozilla-firefox; X-XFCE-Category=WebBrowser X-XFCE-Commands=%B; X-XFCE-CommandsWithParameter=%B "%s";
The file is dated July 9. I have a suspicion that I have to add "-P someprofile" somewhere.
Is there a corresponding user file under {home}? Using "mc" to search for the file in home finds only the one under .local I mentioned in my first post.
Just use Default Applications to specify any additional parameters you need.
On 24/07/2022 16.55, Andrei Borzenkov wrote:
On 24.07.2022 15:55, Carlos E. R. wrote:
On 24/07/2022 14.40, Andrei Borzenkov wrote:
On 24.07.2022 14:47, Carlos E. R. wrote:
...
cer@Legolas:~> xdg-open "http://google.es" cer@Legolas:~>
and a window from FF opens asking me what profile to open. I do not want that, I want it to directly open "default" profile.
cer@Legolas:~> xdg-settings get default-web-browser firefox.desktop cer@Legolas:~>
I assume it means ~/.local/share/applications/firefox.desktop
This depends on desktop environment. XFCE is using separate desktop file(s) to launch default applications.
/usr/share/xfce4/helpers/firefox.desktop (and corresponding user specific version)
Ah. Yes, I use XFCE. I don't get clear what command it is using if it is that file. Perhaps:
X-XFCE-Binaries=firefox;firefox-gtk2;firefox-gtk;mozilla-firefox; X-XFCE-Category=WebBrowser X-XFCE-Commands=%B; X-XFCE-CommandsWithParameter=%B "%s";
The file is dated July 9. I have a suspicion that I have to add "-P someprofile" somewhere.
Is there a corresponding user file under {home}? Using "mc" to search for the file in home finds only the one under .local I mentioned in my first post.
Just use Default Applications to specify any additional parameters you need.
I can only click on a list of apps, not edit them. At least on 15.3 xfce settings panel. :-? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2022-07-25 a las 08:03 +0300, Andrei Borzenkov escribió:
On 24.07.2022 22:57, Carlos E. R. wrote:
I can only click on a list of apps, not edit them. At least on 15.3 xfce settings panel.
Select Other and you can enter command with parameters.
Ah, I see, thanks. Unfortunately, doesn't work, see my other post in this thread with a long explanation. - -- Cheers Carlos E. R. (from openSUSE 15.3 (Legolas)) -----BEGIN PGP SIGNATURE----- iHkEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYt57Hhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVbKIAmLjB9FWrTDrppv/yDaFe DaOlprYAoIPB6ajg35iB0mAL0aUju2kv/TsK =eI2T -----END PGP SIGNATURE-----
Am 24.07.22 um 13:47 schrieb Carlos E. R.:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
I have many different firefox profiles, and want to open links in mails (thunderbird) automatically in always the same (default) profile. I use KDE though, so I am not sure if this helps: the command to open my default profile is firefox %u the command for the other profiles is firefox -no-remote -P profileName Those with "no-remote" can only be started once, i.e. to open a new window of the same profile I must go over the firefox menu file->new window. If I try to open that profile again from command line or a link I get the message you described. The firefox started without "no-remote" can be opened "unlimited" times. The problem occurs when I open firefox from console with "firefox -P". Then it shows the dialog to chose the desired profile and you have to be careful and UNcheck "Use selected profile profile without asking". If you used another profile without unchecking this in that dialog, the next time firefox is called it will try to open that other profile and if already a window is open of that profile it will grump with the message you've seen. You must start once with "firefox -P", chose the default profile you want to be opened without asking, and this time check that box "open without asking". From then on it should work normal again. -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
On 24/07/2022 22.35, Daniel Bauer wrote:
Am 24.07.22 um 13:47 schrieb Carlos E. R.:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
I have many different firefox profiles, and want to open links in mails (thunderbird) automatically in always the same (default) profile. I use KDE though, so I am not sure if this helps:
the command to open my default profile is firefox %u
the command for the other profiles is firefox -no-remote -P profileName
Yes, I know that. The problem is how to tell Thunderbird that, because things are not that easy as Thunderbird has to use the default web browser that the user selected in whatever desktop the user is using. And each desktop does this differently and saves this in different places.
Those with "no-remote" can only be started once, i.e. to open a new window of the same profile I must go over the firefox menu file->new window. If I try to open that profile again from command line or a link I get the message you described.
The firefox started without "no-remote" can be opened "unlimited" times.
The problem occurs when I open firefox from console with "firefox -P". Then it shows the dialog to chose the desired profile and you have to be careful and UNcheck "Use selected profile profile without asking".
If you used another profile without unchecking this in that dialog, the next time firefox is called it will try to open that other profile and if already a window is open of that profile it will grump with the message you've seen.
Apparently, it is using this: X-XFCE-Binaries=firefox;firefox-gtk2;firefox-gtk;mozilla-firefox; X-XFCE-Category=WebBrowser X-XFCE-Commands=%B; X-XFCE-CommandsWithParameter=%B "%s"; And there is no "noremote" there.
You must start once with "firefox -P", chose the default profile you want to be opened without asking, and this time check that box "open without asking".
From then on it should work normal again.
No, that doesn't work. Because when (hours later) I open manually a different profile from the command line, using: firefox --ProfileManager --no-remote & it changes the default, unless I remember to unclick that box. What I need is find what exact file contains the definition of the browser to use (in XFCE, as user, not root), and edit it to contain the correct information. So, I edited just now the file ~/.local/share/applications/firefox.desktop and added "--no-remote" in three places: ... Actions=new-window;PrivateBrowsing;ProfileManager Path= [Desktop Action new-window] Name=New Window Exec=firefox --new-window %u --no-remote [Desktop Action PrivateBrowsing] Name=New Private Browsing Window Exec=firefox --private-window %u --no-remote [Desktop Action ProfileManager] Name=Profile Manager Exec=firefox --ProfileManager --no-remote And now I get the profile popup. After a moment, again I get the popup I got initially with the same error. So I close all my firefox windows, and try again. I get the profile question, and this time firefox starts and opens the link. I click a second time on the same link, and this time it works without any complaint. Well, issue solved! Thanks for the hint. My file now has: ... Actions=new-window;PrivateBrowsing;ProfileManager Path= [Desktop Action new-window] Name=New Window Exec=firefox -P default --new-window %u --no-remote [Desktop Action PrivateBrowsing] Name=New Private Browsing Window Exec=firefox -P default --private-window %u --no-remote [Desktop Action ProfileManager] Name=Profile Manager Exec=firefox --ProfileManager --no-remote -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2022-07-24 a las 23:19 +0200, Carlos E. R. escribió:
On 24/07/2022 22.35, Daniel Bauer wrote:
Am 24.07.22 um 13:47 schrieb Carlos E. R.:
...
So I close all my firefox windows, and try again. I get the profile question, and this time firefox starts and opens the link. I click a second time on the same link, and this time it works without any complaint.
Well, issue solved! Thanks for the hint.
I rebooted, and problem is back. I will try what Andrei suggested. [...] Nope, same error. default apps, other, «firefox -P "default" --no-remote "%s"» I close FF, open it, and try [...] No, same error. Claims FF is not responding. In ps afxu, I see: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ... cer 2415 0.3 0.3 469304 13796 tty2 Sl+ 10:46 0:32 \_ xfce4-panel --display :0.0 --sm-client-id 2482f2b54-aeb8-4bfe-af1f-39cc7cf7dd33 cer 2422 0.1 0.3 478784 13648 tty2 Sl+ 10:46 0:09 | \_ /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib64/xfce4/panel/plugins/libwhiskermenu.so 1 16777223 whiskermenu Whisker Menu Show a menu to easily access installed applications cer 4177 35.7 24.7 4517348 971688 tty2 Rl+ 10:48 49:55 | | \_ /usr/lib64/thunderbird/thunderbird-bin cer 4249 0.0 0.2 2578572 8700 tty2 Sl+ 10:49 0:01 | | | \_ /usr/lib64/thunderbird/thunderbird-bin -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 329572 -jsInit 285636 -parentBuildID 20220628000715 -appdir /usr/lib64/thunderbird 4177 tab cer 4301 0.0 0.3 2574936 12428 tty2 Sl+ 10:49 0:01 | | | \_ /usr/lib64/thunderbird/thunderbird-bin -contentproc -childID 2 -isForBrowser -prefsLen 2167 -prefMapSize 329572 -jsInit 285636 -parentBuildID 20220628000715 -appdir /usr/lib64/thunderbird 4177 tab cer 4363 0.2 0.6 2628508 25364 tty2 Sl+ 10:49 0:19 | | | \_ /usr/lib64/thunderbird/thunderbird-bin -contentproc -childID 4 -isForBrowser -prefsLen 3185 -prefMapSize 329572 -jsInit 285636 -parentBuildID 20220628000715 -appdir /usr/lib64/thunderbird 4177 tab cer 14358 7.1 6.5 3666024 256636 tty2 Sl+ 12:48 1:24 | | \_ /usr/lib64/firefox/firefox -P default --no-remote cer 14444 1.6 4.3 2848936 169692 tty2 Sl+ 12:48 0:19 | | \_ /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 271762 -jsInit 285636 -parentBuildID 20220623065118 -appdir /usr/lib64/firefox/browser 14358 true tab cer 14487 4.2 5.2 2983788 207436 tty2 Sl+ 12:49 0:49 | | \_ /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 93 -prefMapSize 271762 -jsInit 285636 -parentBuildID 20220623065118 -appdir /usr/lib64/firefox/browser 14358 true tab cer 14546 2.1 5.7 2952936 224292 tty2 Sl+ 12:49 0:24 | | \_ /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 5035 -prefMapSize 271762 -jsInit 285636 -parentBuildID 20220623065118 -appdir /usr/lib64/firefox/browser 14358 true tab cer 14660 0.2 2.0 2604832 82228 tty2 Sl+ 12:49 0:02 | | \_ /usr/lib64/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 5832 -prefMapSize 271762 -jsInit 285636 -parentBuildID 20220623065118 -appdir /usr/lib64/firefox/browser 14358 true tab cer 14769 0.0 0.5 376632 22676 tty2 Sl+ 12:50 0:00 | | \_ /usr/lib64/firefox/firefox -contentproc -parentBuildID 20220623065118 -prefsLen 5879 -prefMapSize 271762 -appdir /usr/lib64/firefox/browser 14358 true rdd ... 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. By the way, Thunderbird is constantly using 50% of the CPU on both cores, making this tiny laptop hot and unresponsive. For hours and hours. - -- Cheers Carlos E. R. (from openSUSE 15.3 (Legolas)) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYt56xxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV/bEAniia0Q5fbRXjZipQ0iRL bu5YfXJnAJ9WgpLibu1fW6LkyXb4EvH+i6l7Mg== =FpEw -----END PGP SIGNATURE-----
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
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))
On 25.07.2022 21:06, Carlos E. R. wrote:
(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)
https://utcc.utoronto.ca/~cks/space/blog/unix/WeirdFirefoxRemoteControl https://utcc.utoronto.ca/~cks/space/blog/unix/FirefoxNoX11RemoteControl
On 25/07/2022 20.34, Andrei Borzenkov wrote:
On 25.07.2022 21:06, Carlos E. R. wrote:
(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)
https://utcc.utoronto.ca/~cks/space/blog/unix/WeirdFirefoxRemoteControl
Yes, this one I remember. Or some very similar text.
https://utcc.utoronto.ca/~cks/space/blog/unix/FirefoxNoX11RemoteControl
Ah, this is news to me. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
On 25.07.2022 21:06, Carlos E. R. wrote:
Unless you tell me that the main process should also have been started without the "--no-remote"
Yes. --no-remote Do not *accept* or send remote commands; implies --new-instance. --new-instance Open new instance, not a new window in running instance. To disable client side only (do not contact running instance but accept requests) use --new-instance.
On 26/07/2022 07.38, Andrei Borzenkov wrote:
On 25.07.2022 21:06, Carlos E. R. wrote:
Unless you tell me that the main process should also have been started without the "--no-remote"
Yes.
--no-remote Do not *accept* or send remote commands; implies --new-instance. --new-instance Open new instance, not a new window in running instance.
To disable client side only (do not contact running instance but accept requests) use --new-instance.
I'll try to remember next time I hit issues using ssh :-) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
Am 24.07.22 um 23:19 schrieb Carlos E. R.:
On 24/07/2022 22.35, Daniel Bauer wrote:
Am 24.07.22 um 13:47 schrieb Carlos E. R.:
Hi,
When I click on a link in an email in Thundebird, it stays silent for some seconds, then says that "Firefox is alreadu running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different process".
I have many different firefox profiles, and want to open links in mails (thunderbird) automatically in always the same (default) profile. I use KDE though, so I am not sure if this helps:
the command to open my default profile is firefox %u
the command for the other profiles is firefox -no-remote -P profileName
Yes, I know that. The problem is how to tell Thunderbird that, because things are not that easy as Thunderbird has to use the default web browser that the user selected in whatever desktop the user is using. And each desktop does this differently and saves this in different places.
Those with "no-remote" can only be started once, i.e. to open a new window of the same profile I must go over the firefox menu file->new window. If I try to open that profile again from command line or a link I get the message you described.
The firefox started without "no-remote" can be opened "unlimited" times.
The problem occurs when I open firefox from console with "firefox -P". Then it shows the dialog to chose the desired profile and you have to be careful and UNcheck "Use selected profile profile without asking".
If you used another profile without unchecking this in that dialog, the next time firefox is called it will try to open that other profile and if already a window is open of that profile it will grump with the message you've seen.
Apparently, it is using this:
X-XFCE-Binaries=firefox;firefox-gtk2;firefox-gtk;mozilla-firefox; X-XFCE-Category=WebBrowser X-XFCE-Commands=%B; X-XFCE-CommandsWithParameter=%B "%s";
And there is no "noremote" there.
You must start once with "firefox -P", chose the default profile you want to be opened without asking, and this time check that box "open without asking".
From then on it should work normal again.
No, that doesn't work.
Because when (hours later) I open manually a different profile from the command line, using:
firefox --ProfileManager --no-remote &
it changes the default, unless I remember to unclick that box.
What I need is find what exact file contains the definition of the browser to use (in XFCE, as user, not root), and edit it to contain the correct information.
So, I edited just now the file ~/.local/share/applications/firefox.desktop
and added "--no-remote" in three places:
...
Actions=new-window;PrivateBrowsing;ProfileManager
Path=
[Desktop Action new-window] Name=New Window Exec=firefox --new-window %u --no-remote
[Desktop Action PrivateBrowsing] Name=New Private Browsing Window Exec=firefox --private-window %u --no-remote
[Desktop Action ProfileManager] Name=Profile Manager Exec=firefox --ProfileManager --no-remote
And now I get the profile popup. After a moment, again I get the popup I got initially with the same error.
So I close all my firefox windows, and try again. I get the profile question, and this time firefox starts and opens the link. I click a second time on the same link, and this time it works without any complaint.
Well, issue solved! Thanks for the hint.
My file now has:
...
Actions=new-window;PrivateBrowsing;ProfileManager
Path=
[Desktop Action new-window] Name=New Window Exec=firefox -P default --new-window %u --no-remote
[Desktop Action PrivateBrowsing] Name=New Private Browsing Window Exec=firefox -P default --private-window %u --no-remote
[Desktop Action ProfileManager] Name=Profile Manager Exec=firefox --ProfileManager --no-remote
I think these exec lines should be different: in the .desktop files for your "other" browser profiles add the profile name: Exec=firefox -no-remote -P profileName (so it doesn't ask you which profile because you already defined it) in the .desktop file for your default browser remove the -no-remote -P profileName: Exec=firefox %u Then open firefox from command line with firefox -P select your default profile, check "don't ask". It should work from now on, also after logout/in, reboot... -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
On 25/07/2022 14.18, Daniel Bauer wrote:
Am 24.07.22 um 23:19 schrieb Carlos E. R.:
On 24/07/2022 22.35, Daniel Bauer wrote:
Am 24.07.22 um 13:47 schrieb Carlos E. R.:
...
Actions=new-window;PrivateBrowsing;ProfileManager
Path=
[Desktop Action new-window] Name=New Window Exec=firefox -P default --new-window %u --no-remote
[Desktop Action PrivateBrowsing] Name=New Private Browsing Window Exec=firefox -P default --private-window %u --no-remote
[Desktop Action ProfileManager] Name=Profile Manager Exec=firefox --ProfileManager --no-remote
I think these exec lines should be different:
in the .desktop files for your "other" browser profiles add the profile name: Exec=firefox -no-remote -P profileName (so it doesn't ask you which profile because you already defined it)
in the .desktop file for your default browser remove the -no-remote -P profileName: Exec=firefox %u
Then open firefox from command line with firefox -P
select your default profile, check "don't ask".
"Don't ask" doesn't work, because it then runs the last opened profile, not the correct one.
It should work from now on, also after logout/in, reboot...
As you can see in my other post with "ps afxu" output, nothing will work, because firefox is being called with the correct command line yet it fails. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
Am 25.07.22 um 16:19 schrieb Carlos E. R.:
On 25/07/2022 14.18, Daniel Bauer wrote:
I think these exec lines should be different:
in the .desktop files for your "other" browser profiles add the profile name: Exec=firefox -no-remote -P profileName (so it doesn't ask you which profile because you already defined it)
in the .desktop file for your default browser remove the -no-remote -P profileName: Exec=firefox %u
Then open firefox from command line with firefox -P
select your default profile, check "don't ask".
"Don't ask" doesn't work, because it then runs the last opened profile, not the correct one.
Yes, but it is the last opened profile which you opened via the profiles dialog. This is why you should use the command line firefox -P (without profilename) the /last/ time when you select your default profile in the profiles dialog (and here check "don't ask") and then never again use that command without a profilename. Then this is the "last opened profile" for ever, or until you provoke the profile dialog again with the above command. But if you do, just do it again, selecting default profile and check "don't ask".
It should work from now on, also after logout/in, reboot...
As you can see in my other post with "ps afxu" output, nothing will work, because firefox is being called with the correct command line yet it fails.
For me this "don't ask" was a bit confusing in the beginning. It doesn't just affect one profile, but all of them. If you say "don't ask" for any profile, /no/ profile will ask you when you start it with -P profilename. If you uncheck "don't ask" when opening any profile, /all/ profiles will ask you when you start them. If you have set "don't ask" and start firefox without "-P profilename" it opens the last profile you selected in the profiles dialog. So you just have to make sure that the last time you use the profiles dialog, you use it to open your default profile and check "don't ask". When you now open another profile with "firefox -P profilename" it will open the given profile without asking, but when you start with "firefox" (without -P) it will start your default one. -- Daniel Bauer photographer Basel Málaga https://www.patreon.com/danielbauer https://www.daniel-bauer.com
On 25/07/2022 18.50, Daniel Bauer wrote:
Am 25.07.22 um 16:19 schrieb Carlos E. R.:
On 25/07/2022 14.18, Daniel Bauer wrote:
I think these exec lines should be different:
in the .desktop files for your "other" browser profiles add the profile name: Exec=firefox -no-remote -P profileName (so it doesn't ask you which profile because you already defined it)
in the .desktop file for your default browser remove the -no-remote -P profileName: Exec=firefox %u
Then open firefox from command line with firefox -P
select your default profile, check "don't ask".
"Don't ask" doesn't work, because it then runs the last opened profile, not the correct one.
Yes, but it is the last opened profile which you opened via the profiles dialog.
This is why you should use the command line firefox -P (without profilename) the /last/ time when you select your default profile in the profiles dialog (and here check "don't ask") and then never again use that command without a profilename.
Then this is the "last opened profile" for ever, or until you provoke the profile dialog again with the above command. But if you do, just do it again, selecting default profile and check "don't ask".
It should work from now on, also after logout/in, reboot...
As you can see in my other post with "ps afxu" output, nothing will work, because firefox is being called with the correct command line yet it fails.
For me this "don't ask" was a bit confusing in the beginning. It doesn't just affect one profile, but all of them. If you say "don't ask" for any profile, /no/ profile will ask you when you start it with -P profilename. If you uncheck "don't ask" when opening any profile, /all/ profiles will ask you when you start them.
If you have set "don't ask" and start firefox without "-P profilename" it opens the last profile you selected in the profiles dialog.
So you just have to make sure that the last time you use the profiles dialog, you use it to open your default profile and check "don't ask".
When you now open another profile with "firefox -P profilename" it will open the given profile without asking, but when you start with "firefox" (without -P) it will start your default one.
Problem is, I don't always remember the correct name of the profile I want to use (and I have several computers), so I use the profile selector instead, and with that box ticked it changes my default profile, unless I remember to untick it that time. It would be better a tick box besides _one_ of the profiles to select the default one. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
On 24/07/2022 23.19, Carlos E. R. wrote: This post was not sent in time, now it is obsolete because the issue is really solved. Still, the comment at the end is valid.
So I close all my firefox windows, and try again. I get the profile question, and this time firefox starts and opens the link. I click a second time on the same link, and this time it works without any complaint.
Well, issue solved! Thanks for the hint.
I rebooted, and problem is back. I will try what Andrei suggested. [...] Nope, same error. default apps, other, «firefox -P "default" --no-remote "%s"» I close FF, open it, and try. [...] No, same error. Claims FF is not responding. In ps afxu, I see: cer 14358 39.9 7.9 3671220 311464 tty2 Sl+ 12:48 1:13 | | \_ /usr/lib64/firefox/> cer 14444 7.6 5.8 2854096 228868 tty2 Sl+ 12:48 0:13 | | \_ /usr/lib64/fire> cer 14487 14.4 6.9 2983788 273288 tty2 Sl+ 12:49 0:25 | | \_ /usr/lib64/fire> cer 14546 13.5 6.6 2953960 262704 tty2 Sl+ 12:49 0:22 | | \_ /usr/lib64/fire> cer 14660 1.6 2.9 2604832 115904 tty2 Sl+ 12:49 0:02 | | \_ /usr/lib64/fire> cer 14769 0.2 1.0 376632 40492 tty2 Sl+ 12:50 0:00 | | \_ /usr/lib64/fire> ... cer 14949 8.2 3.7 2810524 148120 tty2 Sl+ 12:51 0:01 /usr/lib64/firefox/firefox -P default --no-> cer 14958 9.1 3.7 2812716 149268 tty2 Sl+ 12:51 0:02 /usr/lib64/firefox/firefox -P default --no-> ~ By the way, Thunderbird is constantly using 50% of the CPU on both cores, making this tiny laptop hot and unresponsive. For hours and hours. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.3 (Legolas))
participants (3)
-
Andrei Borzenkov
-
Carlos E. R.
-
Daniel Bauer