most of the 2.X->3.0 commit (up to rev 4299) except for gtk2_ardour/editor_canvas...
[ardour.git] / gtk2_ardour / ui_config.cc
index 37a0ade3fe120e98d62481b6ebe25447b41f89fa..d7cf0974ab8ee1023e717e7889364d79ec851ab6 100644 (file)
@@ -62,10 +62,17 @@ int
 UIConfiguration::load_defaults ()
 {
        int found = 0;
+
        sys::path default_ui_rc_file;
-       
-       if ( find_file_in_search_path (ardour_search_path() + system_config_search_path(),
-                       "ardour3_ui_default.conf", default_ui_rc_file) )
+       std::string rcfile;
+
+       if (getenv ("ARDOUR_SAE")) {
+               rcfile = "ardour3_ui_sae.conf";
+       } else {
+               rcfile = "ardour3_ui_default.conf";
+       }
+       if ( !find_file_in_search_path (ardour_search_path() + system_config_search_path(),
+                                       rcfile, default_ui_rc_file) )
        {
                XMLTree tree;
                found = 1;