Clicking on the brave launcher often opens a page in a profile that is not what I assume as my “Default Profile”
When I click on a link inside another app to “open in browser” Brave is correctly launched but often in a Profile that I did not expect.
Expected result:
I want to set a Profile to ALWAYS ALWAYS ALWAYS open no matter what. I want the profile that I set to always open first.
I don’t want to mix cookies in between profiles. For privacy I keep those cookies separate and when a page gets accidentally launched in one of my private profiles, it is aggravating.
There is no way to set a default user profile as of the moment. What you could do currently, is use profile-specific shortcuts so you always open the correct user profile. Using the default shortcut will always open the user profile you closed last.
Question: are these two command line options related somehow?
--profile-directory Selects directory of profile to associate with the first browser launched.
--user-data-dir Directory where the browser stores the user profile.
But the developer had to design it to do that.
Wouldn’t it have been better to design it to always open in the Profile that had been first created or one that was set as “default” in the preferences?
Why this monkey decision that gives us profiles opening randomly and sharing cookies everywhere
The first one is related. For the current example, I created a specific desktop shortcut that will always open my daily profile. It corresponds to the default directory, other user profiles will be Profile X where X is a number.
For better understanding of that, you could open C:\Users\User\AppData\Local\BraveSoftware\Brave-Browser\User Data and check how your user profiles are stored.
But like I said twice, Brave allows users to create specific desktop shortcuts easily, so it’s not really needed to burden yourself with directories and such.
I don’t have Google Chrome installed on my PC so can’t test, but I think that’s how it works there too, and Brave developers haven’t bothered to change the behavior of Chromium.
Until the Github issues I listed above have been addressed, you could achieve what you want by creating a specific shortcut for the wanted user profile. It’s done via brave://settings/manageProfile while in the user profile of choice.
Too bad that the linux version of brave does not have that option. There is no “create shortcut for this profile” option in the linux version in brave://settings/manageProfile
Yes. It is not there. On my Windows computer I have already set this up. I am not using the snap version either. This is the install right from the Brave site itself.
Look into xdg-open and how it opens urls. This seems to have useful information.
You would have to make a .desktop shortcut that includes the above mentioned command line option and choose that with xdg-settings set default-web-browser brave-profilename.desktop.
Sorry I can’t check because my Linux box gave up time ago.
Any Linux user to the rescue?
I think so. I’d put 'Profile 1' in quotes though, not sure if single or double.
If you modify the file directly, no need to tamper with xdg-open I guess.
edit: in that case, check if it survives a Brave update, perhaps it rewrites its .desktop file.
edit: those “Desktop Action” sections are interesting too. I think you may add custom ones.
Oh, glad it worked for you! I wish you could easily create specific desktop shortcuts on Linux as you could on Windows, that would save time and efforts.
P.S Edited my previous comments with single quotes in case other users may need this in the future