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))