If profile not found = Brave should close?

Hello all,
Brave seems to me to have evolved a lot and I would like to switch completely to it.
I use multiple profiles for my browsers. I use this in Firefox. I also want to use them in Brave the same way.

In Brave I want to use 3 profiles. Personal, Work, Kids.
The thing is, my Personal profile I want it to be on another partition, a Veracrypt container. I moved the profile in the container and created a Windows shortcut to that profile with mklink…like so :
mklink /J \Destination\Profile3 \Source\Profile3
Mind you that I mount manually the Veracrypt container when needed…when I use the Personal profile.
So far everything works fine !!

The problem is when I tested what happens if I start the Personal profile without the container being mounted. I get 4 errors and then Brave starts with a default profile. After that I close Brave, mount the Veracrypt container with my Personal profile being available again…but when I start Brave-Personal again, I get the same default/guest profile from before. The “connection” between Brave and my actual Person folder is severed permanently.

I use this the same way with Firefox and it works flawlessly. In sense that if the container is not mounted, FF-Personal shows 1 error and closes. After I mount the container FF-Personal-Profile starts with no problem.

I know its a particular situation, but still can you fix this in Brave ? If the profile is missing maybe show the options to create another profile or close Brave.
I understand that the profile philosophy is different on Brave than in Firefox, but you really should adapt this in some way, because more and more people are starting to use Brave. Firefox manages the multi profile situation very well and robust.

And now a days you want separate more and more your web activity and it’s better to use more profiles instead of different browsers.
I really hope you solve this “problem” because I want to migrate on a lot of different devices to Brave.

Thank you !

@Solomon777

Expanding (for easier reading) what you wrote:

The problem is, when I tested what happens:

(1) if I start the Personal profile without the container being mounted

(2) I get 4 errors and then Brave starts with a default profile.

(3) After that I close Brave, and then

(4) mount the Veracrypt container with my Personal profile being available again

(5) when I start Brave-Personal again,

(6) I get the same default/guest profile from before.

(7) The “connection” between Brave and my actual Person folder is severed permanently.


Question 1: Did you create a new mklink at step (4) ← is that what you mean by “with my Personal profile being available again” ?

Question 2: Your Original Post (“OP”) above, shows 2 tags:

  • windows
  • linux

Where exactly are the folders in question? Please report the full paths.

Wow, thanks for the quick reply and for reorganizing the text !!

Q1 : No, the mklink was step 0, and used only once. By “profile being available again” I meant that after mounting the veracrypt container, drive Z: is available again, where the actual Personal profile is situated … and the link/shortcut works again.
The cmd that I used in Windows, for more clarity :

mklink /J "c:\Users\Flo\AppData\Local\BraveSoftware\Brave-Browser\User Data\Profile 4" "z:\Brave\Profile 4\"

Q2: I am testing this in W10, I shouldn’t have used the “linux” tag, but I plan to test this in Linux as well in the future.

Try . . .

Exit / Quit Brave Browser and other appications that you have running.

Delete the mklink that you created.

Delete both:

Cache (folder):

%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cache\

Cookies (file):

%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Cookies

Restart your Windows OS computer.

When running the computer again, first thing to do: Use the mklink command to create a new mklink.

The idea is, to get whatever has an eye on that path, to lose a possible record of the path: “Hey, that link went bad.”

And, after restarting the computer, creating a new record for the path.

And then run Brave Browser - to see if the browser is focused on your profile of interest.

The “record keeper” being the Windows Registry and / or Brave Browser . . . I do not know for certain, how they work together.

I did all that, same result.

I think what happens is the when starting the Personal profile, if the folder is not found. Brave will “switch” to the Default profile.
The problem is that Brave thinks that “Profile 4” is no more, and it will not search for it EVER.

I understand this logic, because if you delete say Profile 1 or Profile 2 or even Default … Brave shoud be able to work again and create another profile. But in a case like mine, this is terrible management.

Still, Firefox managed to do this multi-profile thing very good and robust. Please understand that I use Firefox and Brave alongside, and I have much love for both bowsers, still Brave seems to work more on software, improvement and bugs, not politics and money revenue…

Take a look at the --user_data_dir_name command line flag:

https://github.com/brave/brave-browser/issues/12849

about this, I know about it, btw the parameter is “–user_data_dir”.
What I discovered so far :

  1. It doesn’t work anymore :
    “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --user_data_dir_name=“z:\Brave\Profile 4”
    or this
    “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --user_data_dir=“z:\Brave\Profile 4”
    It just opens the last profile that was closed.

  2. This works, it’s made by Brave
    “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --profile-directory=“Profile 4”
    as long as I have the link and the container is mounted.

  3. This used to work
    “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --user_data_dir=“z:\Brave\Profile 4”
    BUT NOT THIS
    “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --user_data_dir=“z:\Brave\Profile 4\”

  4. The worst one :
    If someone or my kid hits by mistake the shortcut for my personal folder, or it switches by mistake to my personal profile WHILE the container with my profile is not mounted = I can say good bye to my profile !

Is this way of handling multiple profiles a Chromium or a Brave thing ?
I never used multiple profiles so far on other browsers than Mozilla based.

aren’t any 3’rd party solutions ? addons ?
some solution that I could test ?

I don’t know the latest versions of Windows because I haven’t used it since 2007 at home and have only seen it in other people’s homes since then.

Rather than modifying the launcher that points to the Z drive, I would create a symlink in the file explorer. With Linux, it’s very simple: you take the folder that works on Z by holding down the Shift and Ctrl keys when you drop it on C.

In the profiles folder on C, I’d copy the name of a working profile, then delete it and give its name to the symlink I’ve just brought up.

Translated with DeepL.com (free version)

could become : “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --user_data_dir_name=“C:\Brave\Profile 4”

The problem is not the launcher.
But that if Brave does not find the profile, it will never search for that specific profile ever again

I made some other tests. It works fine when you put the folder name instead of the path in the command :
brave-browser --profile-directory=“Profile 4” or brave-browser --user-data-dir=“Profile 4”

Adapt these commands to windows…

1 Like

Sorry, use only this one. Because the other open a default session…

The symlink works fine too. It’s located for you in %LOCALAPPDATA%\BraveSoftware\Brave-Browser\

I know, what happens when you hide Profile 4 ?

The profile is on an USB key. When it’s ejected and I try to launch that profile, it opens a window to select witch profile I want to launch. The same as with the command:
brave-browser --choose-profile

When the USB key is plugged again it works as before…

I haven’t Windows so I don’t hide a folder in a container… Access to files and folders is managed via linux sessions (users and groups with different levels of access).

Ma man !!! :))

I manage to test so this works as I need :

“C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” –user-data-dir=“z:\Brave\Profile 4”

If I’m not mistaken I noticed that english is not your first language, so thank you for the effort !
I will now start to migrate to Brave.