summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-05 18:12:54 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-05 18:12:54 +0000
commitc5a0be5a46216b1b655c478744b5b29974800b74 (patch)
tree62b5c425a1af79811d8bc667189816b073e027d2 /gtk2_ardour
parent54923a38843d23bfd8a204ebaf84fc60b9d9dbc0 (diff)
try setting FONTCONFIG_PATH to make fontconfig look in the right place for linux bundles
git-svn-id: svn://localhost/ardour2/branches/3.0@12192 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 70df4c7603..a7ccf93c3f 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -370,13 +370,16 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
if (Glib::file_test ("/etc/fonts/fonts.conf", Glib::FILE_TEST_EXISTS)) {
setenv ("FONTCONFIG_FILE", "/etc/fonts/fonts.conf", 1);
+ setenv ("FONTCONFIG_PATH, "/etc/fonts", 1);
} else {
/* use the one included in the bundle */
path = Glib::build_filename (dir_path, "etc/fonts/fonts.conf");
setenv ("FONTCONFIG_FILE", path.c_str(), 1);
+ path = Glib::build_filename (dir_path, "etc/fonts");
+ setenv ("FONTCONFIG_PATH, "/etc/fonts", 1);
}
-
+
/* write a pango.rc file and tell pango to use it. we'd love
to put this into the Ardour.app bundle and leave it there,
but the user may not have write permission. so ...