Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: chrome/common/platform_util_linux.cc

Issue 159112: Set GTK_PATH to CHROMIUM_SAVED_GTK_PATH before launching xdg-open.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process_util_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/platform_util_linux.cc
===================================================================
--- chrome/common/platform_util_linux.cc (revision 21122)
+++ chrome/common/platform_util_linux.cc (working copy)
@@ -18,8 +18,10 @@
argv.push_back("xdg-open");
argv.push_back(path.value());
base::file_handle_mapping_vector no_files;
+ base::environment_vector env;
+ env.push_back(std::make_pair("GTK_PATH", getenv("CHROMIUM_SAVED_GTK_PATH")));
base::ProcessHandle handle;
- if (base::LaunchApp(argv, no_files, false, &handle))
+ if (base::LaunchApp(argv, env, no_files, false, &handle))
ProcessWatcher::EnsureProcessGetsReaped(handle);
}
« no previous file with comments | « base/process_util_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698