Allow to run Ardour without start-script on MacOS

This might break JACK, since the previous environment
is no longer re-set before calling JackConnection::open(), then
again, no Ardour does not un/set any critical env variables on MacOS.
This commit is contained in:
Robin Gareus 2019-10-23 22:54:19 +02:00
parent 7060ba4c1d
commit 9cae196a04
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 5 additions and 4 deletions

View File

@ -86,11 +86,12 @@ fixup_bundle_environment (int argc, char* argv[], string & localedir)
no_app_nap ();
if (!g_getenv ("ARDOUR_BUNDLED")) {
return;
if (g_getenv ("ARDOUR_SELF")) {
g_setenv ("ARDOUR_SELF", argv[0]);
}
if (g_getenv ("PREBUNDLE_ENV")) {
EnvironmentalProtectionAgency::set_global_epa (new EnvironmentalProtectionAgency (true, "PREBUNDLE_ENV"));
}
EnvironmentalProtectionAgency::set_global_epa (new EnvironmentalProtectionAgency (true, "PREBUNDLE_ENV"));
set_language_preference ();