From b0ccb3d4d418f912ec0a54f50fa6846d599e5a0a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 13 Mar 2008 11:24:00 +0000 Subject: (OS X native: don't write dynamic pango.rc into app.bundle); use Glib::get_home_dir() rather than HOME for user_ardour_path git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3142 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/main.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 85b41c4f88..707a4155a7 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -163,10 +163,12 @@ fixup_bundle_environment () localedir = strdup (path.c_str()); - /* write a pango.rc file and tell pango to use it */ + /* 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 ... + */ - path = dir_path; - path += "/../Resources/pango.rc"; + path = Glib::build_filename (ARDOUR::get_user_ardour_path(), "pango.rc"); std::ofstream pangorc (path.c_str()); if (!pangorc) { -- cgit v1.2.3