mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 743580 - don't remove atk-bridge from GTK_MODULES during startup r=ginn, karlt
This commit is contained in:
parent
9a3534f2f9
commit
dedadb9188
@ -2917,19 +2917,8 @@ XREMain::XRE_mainInit(bool* aExitFlag)
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_ACCESSIBILITY_ATK
|
||||
// Reset GTK_MODULES, strip atk-bridge if exists
|
||||
// Mozilla will load libatk-bridge.so later if necessary
|
||||
const char* gtkModules = PR_GetEnv("GTK_MODULES");
|
||||
if (gtkModules && *gtkModules) {
|
||||
nsCString gtkModulesStr(gtkModules);
|
||||
gtkModulesStr.ReplaceSubstring("atk-bridge", "");
|
||||
char* expr = PR_smprintf("GTK_MODULES=%s", gtkModulesStr.get());
|
||||
if (expr)
|
||||
PR_SetEnv(expr);
|
||||
// We intentionally leak |expr| here since it is required by PR_SetEnv.
|
||||
}
|
||||
|
||||
// Suppress atk-bridge init at startup, it works after GNOME 2.24.2
|
||||
// Suppress atk-bridge init at startup, until mozilla accessibility is
|
||||
// initialized. This works after gnome 2.24.2.
|
||||
SaveToEnv("NO_AT_BRIDGE=1");
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user