Unity detection now works in all OSes - returns false.
This commit is contained in:
parent
c15e09b71e
commit
f2116c50c0
1 changed files with 4 additions and 0 deletions
|
@ -16,10 +16,14 @@
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
bool IsDesktopEnvironmentUnity() {
|
bool IsDesktopEnvironmentUnity() {
|
||||||
|
#if defined(OS_LINUX)
|
||||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||||
base::nix::DesktopEnvironment desktop_env =
|
base::nix::DesktopEnvironment desktop_env =
|
||||||
base::nix::GetDesktopEnvironment(env.get());
|
base::nix::GetDesktopEnvironment(env.get());
|
||||||
return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY;
|
return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in a new issue