Restarting a non-default profiles doesn't work

The place to report Pale Moon specific bugs on Linux and other operating systems.
Locked
User avatar
hannahmontana
Moongazer
Moongazer
Posts: 9
Joined: 2019-08-26, 14:25

Restarting a non-default profiles doesn't work

Post by hannahmontana » 2019-08-31, 17:02

Steps to reproduce:
  • Create a new profile from about:profiles
  • In the new profile either install a new non-bootstrapped addon and press restart, or just choose the 'restart' option from the menu
  • Observe the window close and a new window of the default profile pop up

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 26661
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Restarting a non-default profiles doesn't work

Post by Moonchild » 2019-08-31, 18:19

If you do not use the normal on-startup profile manager and keep the default setting (automatically start with the default profile) then any restart of the browser will automatically start your browser with the default profile. That works exactly as it should.
If you want to actively use multiple profiles, start the browser with -profilemanager and uncheck "use the selected profile without asking on startup"
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2178
Joined: 2012-06-28, 01:20

Re: Restarting a non-default profiles doesn't work

Post by ron_1 » 2019-08-31, 18:31

Moonchild wrote:
If you want to actively use multiple profiles, start the browser with -profilemanager and uncheck "use the selected profile without asking on startup"
Maybe I'm misunderstanding what's going on here, but when I performed the OP's "steps to reproduce" it restarted on the same non-default profile, even though I have "use the selected profile without asking on startup" checked.

EDIT
Okay, I just discovered something. If you have two browser windows open, one with the default profile, and the other with a non-default profile, when clicking Restart in the non-default profile, it will indeed restart with the default profile just like the OP states (then you'll have two browser windows opens, both with the default profile). If you have only one instance of the browser running with a non-default profile and click Restart, it restarts with the same non-default profile.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 26661
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Restarting a non-default profiles doesn't work

Post by Moonchild » 2019-08-31, 20:08

I'm sorry if I didn't understand the entire situation here. I didn't mean to add to confusion.

If you have 2 browser windows open with different profiles, then at least one (the non-default, I'm guessing) will be running in no-remote mode. (if you have opened that with the button from about:profiles it will indeed be running in no-remote mode).
When hitting restart, the remote-enabled instance of the browser will open a new window in the already-opened (default) profile and you're NOT having 2 different instances anymore in that case, but instead just opened a new window in the running session. This is because the launch command sees the browser is already open and will in that case not launch another copy (that's by design).

All of this is correct behavior although potentially confusing if you don't know what's going on.
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

User avatar
therube
Board Warrior
Board Warrior
Posts: 1275
Joined: 2018-06-08, 17:02

Re: Restarting a non-default profiles doesn't work

Post by therube » 2019-09-01, 14:58

Off-topic:
IMHO...
A restart of a browser, from within any particular Profile, however initiated, should always reopen the same Profile, regardless of anything else.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 26661
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Restarting a non-default profiles doesn't work

Post by Moonchild » 2019-09-01, 15:49

therube wrote:
2019-09-01, 14:58
IMHO...
A restart of a browser, from within any particular Profile, however initiated, should always reopen the same Profile, regardless of anything else.
It does.

Only in the edge case where you are already running a different copy that is integrated in the OS it does not. There is no easy way around this without breaking other behavior that you want (e.g. not opening a new browser for every clicked link)
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

Locked