diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-12 13:32:12 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-12 13:33:11 -0700 |
commit | 3437fec7856a9474ae9864a93c2d16e06ae036c6 (patch) | |
tree | 3e114b65a8bff99b3c92aeb8747adfb11252cc84 /gtk2_ardour/bundle_env_cocoa.cc | |
parent | 5f6b2d6843f7c6663fa660332fa9cb4a3fb1631e (diff) |
fix ASL logging/stdout+stderr when running from terminal in macOS
Diffstat (limited to 'gtk2_ardour/bundle_env_cocoa.cc')
-rw-r--r-- | gtk2_ardour/bundle_env_cocoa.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/bundle_env_cocoa.cc b/gtk2_ardour/bundle_env_cocoa.cc index eea289fce6..3bae7209d8 100644 --- a/gtk2_ardour/bundle_env_cocoa.cc +++ b/gtk2_ardour/bundle_env_cocoa.cc @@ -95,7 +95,14 @@ fixup_bundle_environment (int argc, char* argv[], string & localedir) set_language_preference (); - setup_logging (); + /* if running from a bundle, stdout/stderr will be redirect to null, so + * we want ASL logging. If not, we're probably running in a terminal + * and we don't want ASL logging. + */ + + if (g_getenv ("ARDOUR_BUNDLED")) { + setup_logging (); + } char execpath[MAXPATHLEN+1]; uint32_t pathsz = sizeof (execpath); |