diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-23 14:53:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-23 14:53:20 +0000 |
commit | d8a302d647ef82a4cc3604ab755ed9facaad97fc (patch) | |
tree | c005f6473496a102d5cc08f4d1417d536df9e209 | |
parent | 40e2a6b16b47acf1f19a31f5e6d1cd463c45e1b6 (diff) |
(linux too!) set ARDOUR_SURFACES_PATH for a bundle, just like ARDOUR_PANNER_PATH
git-svn-id: svn://localhost/ardour2/branches/3.0@9192 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/main.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 0497bccb78..b635ba50b4 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -237,7 +237,6 @@ fixup_bundle_environment (int, char* []) setenv ("ARDOUR_SURFACES_PATH", path.c_str(), 1); - path = dir_path; path += "/../Frameworks/clearlooks"; @@ -424,6 +423,18 @@ fixup_bundle_environment (int /*argc*/, char* argv[]) setenv ("ARDOUR_PANNER_PATH", path.c_str(), 1); + cstr = getenv ("ARDOUR_SURFACES_PATH"); + if (cstr) { + path = cstr; + path += ':'; + } else { + path = ""; + } + path += dir_path; + path += "/lib/surfaces"; + + setenv ("ARDOUR_SURFACES_PATH", path.c_str(), 1); + path = dir_path; path += "/lib/clearlooks"; |