After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631295 - gdk-pixbuf can not find loaders.cache on Windows
gdk-pixbuf can not find loaders.cache on Windows
Status: RESOLVED FIXED
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
: 634623 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-04 08:44 UTC by Maarten Bosmans
Modified: 2010-12-27 10:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gdk-pixbuf-io.c (815 bytes, patch)
2010-10-20 17:00 UTC, Kazuki Iwamoto
none Details | Review

Description Maarten Bosmans 2010-10-04 08:44:31 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()
Comment 1 Kazuki Iwamoto 2010-10-20 17:00:27 UTC
Created attachment 172854 [details] [review]
patch for gdk-pixbuf-io.c
Comment 2 Maarten Bosmans 2010-10-30 09:51:47 UTC
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.
Comment 3 Tor Lillqvist 2010-12-27 10:39:51 UTC
*** Bug 634623 has been marked as a duplicate of this bug. ***