brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.87k stars 2.34k forks source link

Can't create different shortcuts for opening different profiles on Linux #12201

Open sirakai-pc opened 4 years ago

sirakai-pc commented 4 years ago

Description

I can't find a way to open brave browser with a specific profile on archlinux. I hope it's a bug, and its possible to do.

Steps to Reproduce

  1. Open brave-browser expecting to choose profile(with a gui) or expecting to have chosen the profile already

Actual result:

It opens the last profile used.

Expected result:

Reproduces how often:

Brave version (brave://version info)

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

sirakai-pc commented 4 years ago

Any suggestion?

rebron commented 3 years ago

cc: @Brave-Matt Can you take a look?

username02 commented 3 years ago

Description

I can't find a way to open brave browser with a specific profile on archlinux. I hope it's a bug, and its possible to do.

Steps to Reproduce

1. Open brave-browser expecting to choose profile(with a gui) or expecting to have chosen the profile already

Actual result:

It opens the last profile used.

I've tried to find a way to do this (open Brave Browser with a specific profile) on OsX 14.6 (Mojave) and I wasn't able... is it supposed to be already working, on OsX? If yes... how? Every time I launch Brave, it opens the profile in use the previous time.

Thanks for any help or suggestion! (I'm using Brave v1.19.92)

srirambv commented 3 years ago

There is no straight forward way of doing it like on Windows. You will have to manually add a desktop shortcut and add your profile names so that it creates a new one.

First open different profiles on your browser and open brave://version check what is the name profile name under Profile Path In this case profile name is Personal but the profile folder name is Profile 1 image

Open Terminal on Desktop and type touch Brave.desktop Edit the desktop file created and add the following and save

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=brave-browser --profile-directory=Profile\ 1
Name=Brave-Personal 
Icon=brave-browser

Note: Profile\ 1 has to be typed as is otherwise it will launch a new profile and not the one you created.

Once the file is created, right click and go to properties-> permission and then select, Allow executing file as program and close. This should allow you to launch your second profile created via the desktop shortcut created. Repeat same for other profiles as well

Note2: This works on Linux Mint. I haven't tried it on other distro's but concept is same so tweak changes according to your distro where you want to do it.

bigFin commented 3 years ago

The solution above is not working for me on Arch linux. Exec=brave --profile-directory=Profile\ 1 and Exec=brave --profile-directory=Profile\ 2 dont work, but this does Exec=brave --profile-directory=Default So, I navigated to my profile folder and changed the name of the folder from "Profile 1" to "Work" and then edited the shortcut file accordingly. Exec=brave --profile-directory=Work And the shortcut launched the desired profile, no worries!

Now the only need is to select a unique icon for each profile. That seems easy enough. Thank you @srirambv

drwingnut commented 2 years ago

Could we get this moved up in the priority? I have a set of sites that must be opened in a specific profile on macOS that gets auto-launched by launchd on a recurring basis while I am supporting a wildfire team. But when I try to pass Profile 1 like with the following command line: /usr/bin/open -a "Brave Browser" --url https://iwfirp.nwcg.gov/dashboard#dashboard. --args "profile-directory=/Users/jlord/Library/Application Support/BraveSoftware/Brave-Browser/Profile 1"

or /usr/bin/open -a "Brave Browser" --url https://iwfirp.nwcg.gov/dashboard#dashboard. --args "profile-directory=Profile 1"

I still always get URL opened in the last used profile. Grrrr

samdakap commented 1 year ago

(Disclaimer: please tell me if I should open a separate issue, I never know what to do)

regardless of shortcuts on desktop, when Brave is already open, is there a keyboard shortcut to trigger either (from most wanted to acceptable):

Thanks.

I'm using brave both on Mac and Linux.