GNOME Bugzilla – Bug 552153
GtkModules loading with XSettings doesn't work if the GTK_MODULES env var isn't set.
Last modified: 2008-09-13 19:01:29 UTC
GtkModules specified with XSettings doesn't work if the GTK_MODULES env var isn't set. You can test this now that bug 539840 is fixed in gnome-settings-daemon trunk. Patch coming.
Created attachment 118674 [details] [review] patch The loading of GtkModules specified in the xsetting is done by connecting to the "display-opened" signal of GdkDisplayManager, and then querying the setting. That signal is connected by _gtk_modules_init (), that without my patch is called by gtkmain.c only if g_getenv (GTK_MODULES) != NULL.
It would be important for this issue to be fixed before GNOME 2.24: as a consequence of the new gnome-session not setting gnomebreakpad in GTK_MODULES anymore, not having this would mean having no bug-buddy for crashers in 2.24.
Nice catch, please commit.
Committed to trunk, closing. 2008-09-13 Cosimo Cecchi <cosimoc@gnome.org> Bug 552153 – GtkModules loading with XSettings doesn't work if the GTK_MODULES env var isn't set. * gtk/gtkmain.c: (do_post_parse_initialization): * gtk/gtkmodules.c: (_gtk_modules_init): Call _gtk_modules_init () even if gtk_modules_string is NULL, so that GtkModules specified with XSettings could be loaded.