From f2116c50c079531cc287c2b1ca4b0695fab97e58 Mon Sep 17 00:00:00 2001 From: Tomas Rycl Date: Wed, 10 Jan 2018 08:49:21 +0100 Subject: [PATCH] Unity detection now works in all OSes - returns false. --- brightray/browser/views/views_delegate.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brightray/browser/views/views_delegate.cc b/brightray/browser/views/views_delegate.cc index 0546026abd9f..2cca70d1cef5 100644 --- a/brightray/browser/views/views_delegate.cc +++ b/brightray/browser/views/views_delegate.cc @@ -16,10 +16,14 @@ namespace { bool IsDesktopEnvironmentUnity() { +#if defined(OS_LINUX) std::unique_ptr env(base::Environment::Create()); base::nix::DesktopEnvironment desktop_env = base::nix::GetDesktopEnvironment(env.get()); return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY; +#else + return false; +#endif } } // namespace