Open new Chrome window with different profile from command line

I want to run a command line that opens a new chrome window with another profile.

I tested the following commands:

Preconditions:

  • I have two profiles: Profile 1 and Profile 2

  • Chrome is already running with Profile 1

google-chrome --profile-directory="Profile 2"

The above command does nothing other than bringing focus to the currently running chrome with Profile 1

I also tried:

google-chrome --profile-directory="Profile 2" --new-window

The effect is the same.

I want to run a command line that opens a new chrome window with Profile 2 while there is already a Chrome window running with Profile 1

2
задан 6 July 2020 в 08:45

1 ответ

When adding new profile named Whatever, Chrome does not create profile folder with the same name. Naming convention is "Profile X", where X is integer. So, it may be the case to check the real profile folder name before executing the command.

chrome --profile-directory="Profile folder name" works fine on Ubuntu.

You may also find useful this answer and discussion https://superuser.com/a/377195/1084604

1
ответ дан 30 July 2020 в 22:13

Другие вопросы по тегам:

Похожие вопросы: