Index: chrome/installer/linux/common/wrapper |
diff --git a/chrome/installer/linux/common/wrapper b/chrome/installer/linux/common/wrapper |
index 22d642fd042d94b8d12ce8bdef6416fb296b2371..4194365a2709646e8b7091fa67f1732a162f32b3 100755 |
--- a/chrome/installer/linux/common/wrapper |
+++ b/chrome/installer/linux/common/wrapper |
@@ -48,5 +48,12 @@ if [[ -n "@@SXS_USER_DATA_DIR@@" ]]; then |
fi |
fi |
+# Make sure that the profile directory specified in the environment, if any, |
+# overrides the default. |
+if [[ -n "$CHROME_USER_DATA_DIR" ]]; then |
+ PROFILE_DIRECTORY_FLAG="--user-data-dir=$CHROME_USER_DATA_DIR" |
+fi |
+ |
# Note: exec -a below is a bashism. |
-exec -a "$0" "$HERE/@@PROGNAME@@" @@DEFAULT_FLAGS@@ "$@" |
+exec -a "$0" "$HERE/@@PROGNAME@@" @@DEFAULT_FLAGS@@ "$PROFILE_DIRECTORY_FLAG" \ |
+ "$@" |