Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to set Google chrome with a custom user profile as the default browser?

When I set google chrome as the default browser, it picks the "default" user profile as against the custom one I have setup. I tried setting google chrome as default browser after opening it from that particular user profile, but it doesn't seem to have an effect.

I googled around but could only find another poor soul like myself who asked a similar question here: http://www.google.com/support/forum/p/Chrome/thread?tid=69f0a6e776ceab1c&hl=en

There weren't any responses to that question.

Cheers.

share|improve this question
I'd love an answer for this - it's extremely annoying that any links I open from external programs don't open with my custom profile. – SamStephens Nov 24 '10 at 21:29
I've asked the Ubuntu version of this question here askubuntu.com/questions/96804/… – d3vid Jan 19 '12 at 11:04
have you tried --profile-directory=Default? see superuser.com/questions/377186/… – d3vid Jan 4 at 6:46

6 Answers

I did a search and replace of all the occurrences of chrome.exe in my registry with the specific command link. So,

"C:\Users\PROFILE-NAME\AppData\Local\Google\Chrome\Application\chrome.exe" -- "%1"  

was replaced with

"C:\Users\PROFILE-NAME\AppData\Local\Google\Chrome\Application\chrome.exe"  --user-data-dir="C:\Chrome Profile \location" --omnibox-popup-count=10 -- "%1"

everywhere and so far haven't run into any troubles. But there should definitely be a more easier/elegant way of doing this.

share|improve this answer

There's an explanation of how to use multiple Chrome profiles here.

The gist of it is to look inside

%USERPROFILE%\Local Settings\Application Data\Google\Chrome

(Windows XP)
or

%USERPROFILE%\AppData\Local\Google\Chrome

(Vista, Win7)

and copy the "User Data\Default" folder to "User Data\your_profile".

Then run chrome with some command-line options:

chrome.exe --user-data-dir="..\User Data\Your_profile" -first-run

and thereafter, you can run Chrome with that profile by using:

chrome.exe --user-data-dir="..\User Data\Your_Name"

And you can add that --user-data-dir option to a shortcut.

Now how you would use that setup for the default browser, I don't know. Might involve some tinkering in the Registry, around HKEY_CLASSES_ROOT\htmlfile\shell

share|improve this answer
:) just added an answer while you replied, let's see if anybody else comes up with a better solution. – Kaushik Gopal Feb 16 '10 at 15:43

Add a string value called UserDataDir under

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome

with the value of the user-data-dir that you'd like to use.

This works in Chrome version 21. I'm not sure which version it was first implemented in, though.

This way you don't have to use any command line arguments to chrome.exe and so you don't need to change the shell handlers for the various file types that chrome opens

share|improve this answer
Looks promising; any idea what the equivalent on OSX is? – mklement Nov 3 '12 at 15:03

This question is basically the same, and the answers indicate that unfortunately, there is no practical solution yet.

share|improve this answer

I have a solution for MacOSX. I have used an Automator to create Folder Action on ~/Library/Application Support/Google/Chrome. When the Chrome application quits, it creates some unimportant shutdown file in this directory. This triggers a folder action. If the last profile used was not the Default it runs this script, to modify saved profile:

cd ~/Library/Application\ Support/Google/Chrome
if ! grep '"last_used": "Default"' Local\ State >/dev/null; then
    sed -e 's/"last_used":.*/"last_used": "Default",/' \
        -e 's/"last_active_profiles":.*/"last_active_profiles": [ "Default" ],/' \
        -i .bak Local\ State
    say "Chrome Default Profile Set"
fi

Next time you start Chrome (anyhow), it will start with the Default profile.

share|improve this answer

No way to do it. Chrome always opens any external link from the active user or the last user you have switched to.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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