mirror of
https://github.com/electron/electron.git
synced 2026-01-15 02:18:18 -05:00
Unity detection now works in all OSes - returns false.
This commit is contained in:
committed by
Aleksei Kuzmin
parent
c15e09b71e
commit
f2116c50c0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user