Unity detection now works in all OSes - returns false.

This commit is contained in:
Tomas Rycl 2018-01-10 08:49:21 +01:00 committed by Aleksei Kuzmin
parent c15e09b71e
commit f2116c50c0

View file

@ -16,10 +16,14 @@
namespace {
bool IsDesktopEnvironmentUnity() {
#if defined(OS_LINUX)
std::unique_ptr<base::Environment> 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