I use the new built-in "Users" feature of Chrome to switch between Home/Work accounts easily. However, Chrome remembers the "last" user profile you had selected when launching new windows. This is a problem if I close down my "Home" profile last, because when I then click the Email shortcut on my taskbar, because it goes to mail.mycompany.com using my Home profile, and I'm not logged in.

I'd like to change the shortcut to the company webmail to pass a switch that tells Chrome to always start as the "Default" user, regardless of the last one used.

Note: I have tried user-data-dir, and this seems to do something very different, completely isolated from the Users functionality built in to Chrome. It's possible I'm using it wrong, but please test this before assuming it does the same thing and posting an answer ;-)

link|improve this question
feedback

2 Answers

up vote 6 down vote accepted

The command line argument you're looking for is --profile-directory=Default.

Here's the complete command line for Mac OS X:

open -a "Google Chrome" --args --profile-directory=Default

It expects the internal names of the profiles: My second profile, named "Lemonade" by Chrome, would be --profile-directory="Profile 1".

On Mac OS X, the directories are located in ~/Library/Application Support/Google/Chrome.

link|improve this answer
Brilliant! I didn't think it was possible (after searching for weeks, even going through the code repo). Great to not have to worry about the order I close the browsers in now :) – Danny Tuppeny Jan 11 at 13:15
1  
@DannyTuppeny I got it from the source file after a few failed experiments. But you're right, googling for it is definitely difficult as everyone seems to use the other argument... – Daniel Beck Jan 11 at 14:35
feedback

--profile-directory is useless if you have already another profile opened or the last window you close is attributed to another profile.

I have app shortcuts with one profile. The apps shortcuts have --profile-directory="Profile 3" plus the --app="..

The default profile shortcut has --profile-directory="Default".

Both profiles get messed up. Extensions and the default shortcut that I use for daily browsing.

link|improve this answer
I've had no issues - I just made sure all my shortcuts have the --profile-directory, so they'll all start with the profile I want :) – Danny Tuppeny Jan 24 at 19:10
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.