зеркало из https://github.com/mozilla/gecko-dev.git
534845 KDE/Gnome startup notification not disappearing for the first time startup (needsRestart) r=bsmedberg
This commit is contained in:
Родитель
70bd68abf9
Коммит
4e0c8f3588
|
@ -3607,20 +3607,13 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
|
|||
}
|
||||
#endif
|
||||
|
||||
// XXXkt s/MOZ_TOOLKIT_GTK2/MOZ_WIDGET_GTK2/?
|
||||
// but the hidden window has been destroyed so toolkit is NULL anyway.
|
||||
#if defined(HAVE_DESKTOP_STARTUP_ID) && defined(MOZ_TOOLKIT_GTK2)
|
||||
nsGTKToolkit* toolkit = GetGTKToolkit();
|
||||
if (toolkit) {
|
||||
nsCAutoString currentDesktopStartupID;
|
||||
toolkit->GetDesktopStartupID(¤tDesktopStartupID);
|
||||
if (!currentDesktopStartupID.IsEmpty()) {
|
||||
nsCAutoString desktopStartupEnv;
|
||||
desktopStartupEnv.AssignLiteral("DESKTOP_STARTUP_ID=");
|
||||
desktopStartupEnv.Append(currentDesktopStartupID);
|
||||
// Leak it with extreme prejudice!
|
||||
PR_SetEnv(ToNewCString(desktopStartupEnv));
|
||||
}
|
||||
#if defined(HAVE_DESKTOP_STARTUP_ID) && defined(MOZ_WIDGET_GTK2)
|
||||
if (!desktopStartupID.IsEmpty()) {
|
||||
nsCAutoString desktopStartupEnv;
|
||||
desktopStartupEnv.AssignLiteral("DESKTOP_STARTUP_ID=");
|
||||
desktopStartupEnv.Append(desktopStartupID);
|
||||
// Leak it with extreme prejudice!
|
||||
PR_SetEnv(ToNewCString(desktopStartupEnv));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче