
The -user-data-dir flag takes precedence if both are present.

On Linux, the user data directory can also be overridden with the $CHROME_USER_DATA_DIR environment variable.

google-chrome -user-data-dir=/path/to/foo.Overriding the user data directory via the command line is not supported on iOS. Platforms not building with the file may not have implemented the override. The override happens in chrome/app/chrome_main_. On most platforms, the user data directory can be overridden by passing the -user-data-dir command-line flag to the Chrome binary. Overriding the User Data Directory Command Line Library/Application Support/Google/Chrome.The default location is inside the application support directory in the app sandbox. The default location comes from Context.getDir and is specific to the app.Įxample: /data/user/0//app_chrome iOS The default location is: /home/chronos Android Note that $XDG_CONFIG_HOME affects all applications conforming to the XDG Base Directory Spec, while $CHROME_CONFIG_HOME is specific to Chrome and Chromium. The ~/.config portion of the default location can be overridden by $CHROME_CONFIG_HOME (since M61) or by $XDG_CONFIG_HOME. (The beta and dev channel suffixes are determined from $CHROME_VERSION_EXTRA, which is passed by the launch wrapper script.) (The canary channel suffix is determined using the CrProductDirName key in the browser app's ist.) Linux ~/Library/Application Support/Google/Chrome Canary.~/Library/Application Support/Google/Chrome Beta.~/Library/Application Support/Google/Chrome.The default location is in the Application Support folder: (The canary channel suffix is determined using InstallConstants::install_suffix.) Mac OS X %LOCALAPPDATA%\Google\Chrome SxS\User Data.%LOCALAPPDATA%\Google\Chrome Beta\User Data.%LOCALAPPDATA%\Google\Chrome\User Data.The default location is in the local app data folder: release channel (stable / beta / dev / canary).

Chromium, based on is_chrome_branded in GN args), and The default location of the user data directory is computed by chrome::GetDefaultUserDataDirectory.

C:\Users\Alice\AppData\Local\Google\Chrome\User Data\Default.The user data directory is the parent of the profile directory.This gives the path to the profile directory. To determine the user data directory for a running Chrome instance: The user data directory contains profile data such as history, bookmarks, and cookies, as well as other per-installation local state.Įach profile is a subdirectory (often Default) within the user data directory. Writing an AppleScript wrapper (Mac OS X).
