diff options
author | David Robillard <d@drobilla.net> | 2015-01-10 05:03:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-10 05:03:29 +0000 |
commit | bfd3c4af97e377ef0a5774083bd334a0c1c7743e (patch) | |
tree | 6873e79e30765da7138b0ece055e03208a4bf1fc /src | |
parent | ea59b3a8d2887e963b806c5f595f5d4e6460fc55 (diff) | |
download | patchage-bfd3c4af97e377ef0a5774083bd334a0c1c7743e.tar.gz patchage-bfd3c4af97e377ef0a5774083bd334a0c1c7743e.tar.bz2 patchage-bfd3c4af97e377ef0a5774083bd334a0c1c7743e.zip |
Set GdkPixbuf loaders cache path on OSX.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5512 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()); |