GNOME Bugzilla – Bug 603774
Programs cannot start with glib-2.22.3 installed
Last modified: 2010-03-03 04:36:16 UTC
Calling [org.gnome.glib] Glib.setProgramName() is recommended practice, but crashes your application if GLib version 2.22.3 is installed on your system. That release introduced a check preventing g_set_prgname() from being called more than once, and since java-gnome does so during Gtk.init() [as a convenience, setting the program to "java" as a default] subsequently calling our Glib.setProgramName() causes a FatalError. AfC
I suspect the proper way to do this is to check that getProgramName() == NULL before setting the name so it doesn't overwrite anything that was set previously.
Remove java-gnome's "helpful" call to g_set_prgname() with its default value from the Gtk.init() code path. As a workaround to the application crashing, allow Glib.setProgramName() to be called before Gtk.init(). This does not fix our problem due to bug #563627 but at least it gives us a way forward. Needs testing. Merged to java-gnome in Bazaar branch 'mainline' at revno 701. AfC