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

Unified Diff: base/linux_util.cc

Issue 427013: Properly detect KDE4 on newer systems (e.g. [K]Ubuntu 9.04). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
Index: base/linux_util.cc
===================================================================
--- base/linux_util.cc (revision 32744)
+++ base/linux_util.cc (working copy)
@@ -227,8 +227,13 @@
return DESKTOP_ENVIRONMENT_GNOME;
else if (desktop_session == "kde4")
return DESKTOP_ENVIRONMENT_KDE4;
- else if (desktop_session == "kde")
+ else if (desktop_session == "kde") {
+ // This may mean KDE4 on newer systems, so we have to check.
+ std::string dummy;
+ if (env->Getenv("KDE_SESSION_VERSION", &dummy))
Evan Martin 2009/11/21 18:31:58 We should really fix Getenv to accept a NULL argum
Lei Zhang 2009/11/25 03:07:52 On my Kubuntu 9.04 box, KDE_SESSION_VERSION=4. Sho
Mike Mammarella 2009/11/25 09:35:53 My reasoning was that if we check for its value, t
+ return DESKTOP_ENVIRONMENT_KDE4;
return DESKTOP_ENVIRONMENT_KDE3;
+ }
}
// Fall back on some older environment variables.
« no previous file with comments | « no previous file | net/proxy/proxy_config_service_linux_unittest.cc » ('j') | net/proxy/proxy_config_service_linux_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698