From d8a302d647ef82a4cc3604ab755ed9facaad97fc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 23 Mar 2011 14:53:20 +0000 Subject: (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 --- gtk2_ardour/main.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3