- /* inside an OS X .app bundle, there is no difference
- between DATA and CONFIG locations, since OS X doesn't
- attempt to do anything to expose the notion of
- machine-independent shared data.
- */
-
- export_search_path (bundle_dir, "ARDOUR_DATA_PATH", "/Resources");
- export_search_path (bundle_dir, "ARDOUR_CONFIG_PATH", "/Resources");
- export_search_path (bundle_dir, "ARDOUR_INSTANT_XML_PATH", "/Resources");
- export_search_path (bundle_dir, "LADSPA_PATH", "/Plugins");
- export_search_path (bundle_dir, "VAMP_PATH", "/lib");
- export_search_path (bundle_dir, "SUIL_MODULE_DIR", "/lib");
- export_search_path (bundle_dir, "GTK_PATH", "/lib/gtkengines");
-
- g_setenv ("PATH", (bundle_dir + "/MacOS:" + std::string(getenv ("PATH"))).c_str(), 1);
-
- /* unset GTK_RC_FILES so that we only load the RC files that we define
- */
-
- g_unsetenv ("GTK_RC_FILES");
-
- /* write a pango.rc file and tell pango to use it. we'd love
- to put this into the PROGRAM_NAME.app bundle and leave it there,
- but the user may not have write permission. so ...
+static gboolean
+tell_about_backend_death (void* /* ignored */)
+{
+ if (AudioEngine::instance()->processed_frames() == 0) {
+ /* died during startup */
+ MessageDialog msg (string_compose (_("The audio backend (%1) has failed, or terminated"), AudioEngine::instance()->current_backend_name()), false);
+ msg.set_position (Gtk::WIN_POS_CENTER);
+ msg.set_secondary_text (string_compose (_(
+"%2 exited unexpectedly, and without notifying %1.\n\
+\n\
+This could be due to misconfiguration or to an error inside %2.\n\
+\n\
+Click OK to exit %1."), PROGRAM_NAME, AudioEngine::instance()->current_backend_name()));