GNOME Bugzilla – Bug 631295
gdk-pixbuf can not find loaders.cache on Windows
Last modified: 2010-12-27 10:39:51 UTC
Since the split of gdk-pixbuf in a separate module from Gtk+, the abbility to have relocatable libraries on Windows is lost. Where previously the gdk-pixbuf.loaders file was searched for in the etc subdirectory if the runtime location, the current behaviour is to search for loaders.cache in the lib subdirectory of the *build* location. To me it seems as the solution is to adapt gdk_pixbuf_get_module_file() to use get_toplevel() is G_OS_WIN32 is defined, much like in (the now unused) get_sysconfdir()
Created attachment 172854 [details] [review] patch for gdk-pixbuf-io.c
Yes, this patch solves the problem. I've verified that module loading works again on Windows. Can this be applied to master? Perhaps it also warrants a new 2.22 release.
*** Bug 634623 has been marked as a duplicate of this bug. ***