From bfd3c4af97e377ef0a5774083bd334a0c1c7743e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Jan 2015 05:03:29 +0000 Subject: Set GdkPixbuf loaders cache path on OSX. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5512 a436a847-0d15-0410-975c-d299462d15a1 --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index a83c8ad..715cb43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -52,6 +52,11 @@ set_bundle_environment() setenv("FONTCONFIG_FILE", fonts_conf_path.c_str(), 1); } + const std::string loaders_cache_path(bundle + "/Resources/loaders.cache"); + if (Glib::file_test(loaders_cache_path, Glib::FILE_TEST_EXISTS)) { + setenv("GDK_PIXBUF_MODULE_FILE", loaders_cache_path.c_str(), 1); + } + const std::string gtkrc_path(bundle + "/Resources/gtkrc"); if (Glib::file_test(gtkrc_path, Glib::FILE_TEST_EXISTS)) { gtk_rc_parse(gtkrc_path.c_str()); -- cgit v1.2.1