| Index: base/nix/xdg_util.cc
|
| diff --git a/base/nix/xdg_util.cc b/base/nix/xdg_util.cc
|
| index f76c0cb38b15f1208e591e85c9fd6531961b7901..41a89147b9edac19ebcd4c4a8d21b3d0c2873811 100644
|
| --- a/base/nix/xdg_util.cc
|
| +++ b/base/nix/xdg_util.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/path_service.h"
|
| +#include "base/strings/string_util.h"
|
| #include "base/third_party/xdg_user_dirs/xdg_user_dir_lookup.h"
|
|
|
| namespace {
|
| @@ -57,7 +58,8 @@ DesktopEnvironment GetDesktopEnvironment(Environment* env) {
|
| std::string xdg_current_desktop;
|
| if (env->GetVar("XDG_CURRENT_DESKTOP", &xdg_current_desktop)) {
|
| // Not all desktop environments set this env var as of this writing.
|
| - if (xdg_current_desktop == "Unity") {
|
| + if (base::StartsWith(xdg_current_desktop, "Unity",
|
| + base::CompareCase::SENSITIVE)) {
|
| // gnome-fallback sessions set XDG_CURRENT_DESKTOP to Unity
|
| // DESKTOP_SESSION can be gnome-fallback or gnome-fallback-compiz
|
| std::string desktop_session;
|
|
|