diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:08:20 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 23:08:20 +0000 |
commit | a8ed096e8c3962073c785d70528f49f5a1b0a871 (patch) | |
tree | cea49188bbc9b3d0fdc5b219f360dd859355722b /chrome/common/platform_util_linux.cc | |
parent | 2dc8b3eb1bd1c648d2549d7af7ad5f0ad781ff39 (diff) | |
download | chromium_src-a8ed096e8c3962073c785d70528f49f5a1b0a871.zip chromium_src-a8ed096e8c3962073c785d70528f49f5a1b0a871.tar.gz chromium_src-a8ed096e8c3962073c785d70528f49f5a1b0a871.tar.bz2 |
Linux: Don't propagate $GNOME_DISABLE_CRASH_DIALOG to external apps.
BUG=24120
TEST=none
Review URL: http://codereview.chromium.org/548071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/platform_util_linux.cc')
-rw-r--r-- | chrome/common/platform_util_linux.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/platform_util_linux.cc b/chrome/common/platform_util_linux.cc index 3bc99ee..697f307 100644 --- a/chrome/common/platform_util_linux.cc +++ b/chrome/common/platform_util_linux.cc @@ -28,6 +28,15 @@ void XDGOpen(const std::string& path) { // bring up a new terminal if necessary. See "man mailcap". env.push_back(std::make_pair("MM_NOTTTY", "1")); + // In Google Chrome, we do not let GNOME's bug-buddy intercept our crashes. + // However, we do not want this environment variable to propagate to external + // applications. See http://crbug.com/24120 + char* disable_gnome_bug_buddy = getenv("GNOME_DISABLE_CRASH_DIALOG"); + if (disable_gnome_bug_buddy && + disable_gnome_bug_buddy == std::string("SET_BY_GOOGLE_CHROME")) { + env.push_back(std::make_pair("GNOME_DISABLE_CRASH_DIALOG", "")); + } + base::file_handle_mapping_vector no_files; base::ProcessHandle handle; if (base::LaunchApp(argv, env, no_files, false, &handle)) |