13
0

define MIDI map location in bundle via envvar

git-svn-id: svn://localhost/ardour2/branches/3.0@9205 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-03-25 21:21:40 +00:00
parent 7a970d08ed
commit 8d203215e7

View File

@ -201,18 +201,6 @@ fixup_bundle_environment (int, char* [])
setenv ("VAMP_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_CONTROL_SURFACE_PATH");
if (cstr) {
path = cstr;
path += ':';
} else {
path = "";
}
path += dir_path;
path += "/../Surfaces";
setenv ("ARDOUR_CONTROL_SURFACE_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_PANNER_PATH");
if (cstr) {
path = cstr;
@ -237,6 +225,18 @@ fixup_bundle_environment (int, char* [])
setenv ("ARDOUR_SURFACES_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_MIDIMAPS_PATH");
if (cstr) {
path = cstr;
path += ':';
} else {
path = "";
}
path += dir_path;
path += "/share/midimaps";
setenv ("ARDOUR_MIDIMAPS_PATH", path.c_str(), 1);
path = dir_path;
path += "/../Frameworks/clearlooks";
@ -399,18 +399,6 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
setenv ("VAMP_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_CONTROL_SURFACE_PATH");
if (cstr) {
path = cstr;
path += ':';
} else {
path = "";
}
path += dir_path;
path += "/lib/surfaces";
setenv ("ARDOUR_CONTROL_SURFACE_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_PANNER_PATH");
if (cstr) {
path = cstr;
@ -435,6 +423,18 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
setenv ("ARDOUR_SURFACES_PATH", path.c_str(), 1);
cstr = getenv ("ARDOUR_MIDIMAPS_PATH");
if (cstr) {
path = cstr;
path += ':';
} else {
path = "";
}
path += dir_path;
path += "/share/midimaps";
setenv ("ARDOUR_MIDIMAPS_PATH", path.c_str(), 1);
path = dir_path;
path += "/lib/clearlooks";