зеркало из https://github.com/electron/electron.git
fix: change default ozone platform hint to auto
This commit is contained in:
Родитель
361b37592a
Коммит
737a628e83
|
@ -128,11 +128,13 @@ void ElectronBrowserMainParts::DetectOzonePlatform() {
|
|||
command_line->GetSwitchValueASCII(switches::kOzonePlatformHint);
|
||||
if (ozone_platform_hint.empty()) {
|
||||
env->GetVar(kElectronOzonePlatformHint, &ozone_platform_hint);
|
||||
|
||||
if (ozone_platform_hint.empty()) {
|
||||
ozone_platform_hint = "auto";
|
||||
}
|
||||
}
|
||||
if (!ozone_platform_hint.empty()) {
|
||||
command_line->AppendSwitchASCII(
|
||||
switches::kOzonePlatform, MaybeFixPlatformName(ozone_platform_hint));
|
||||
}
|
||||
command_line->AppendSwitchASCII(switches::kOzonePlatform,
|
||||
MaybeFixPlatformName(ozone_platform_hint));
|
||||
}
|
||||
|
||||
std::string desktop_startup_id;
|
||||
|
|
Загрузка…
Ссылка в новой задаче