@@ -172,9 +172,9 @@ fixup_bundle_environment (int, char* [])
172172 export_search_path (bundle_dir, " ARDOUR_INSTANT_XML_PATH" , " /Resources" );
173173 export_search_path (bundle_dir, " LADSPA_PATH" , " /Plugins" );
174174 export_search_path (bundle_dir, " VAMP_PATH" , " /lib" );
175- export_search_path (bundle_dir, " SUIL_MODULE_DIR" , " /lib" );
176175 export_search_path (bundle_dir, " GTK_PATH" , " /lib/gtkengines" );
177176
177+ setenv (" SUIL_MODULE_DIR" , (bundle_dir + " /lib" ).c_str (), 1 );
178178 setenv (" PATH" , (bundle_dir + " /MacOS:" + std::string (getenv (" PATH" ))).c_str (), 1 );
179179
180180 /* unset GTK_RC_FILES so that we only load the RC files that we define
@@ -282,9 +282,9 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
282282 export_search_path (dir_path, " ARDOUR_DATA_PATH" , " /share" );
283283 export_search_path (dir_path, " LADSPA_PATH" , " /plugins" );
284284 export_search_path (dir_path, " VAMP_PATH" , " /lib" );
285- export_search_path (dir_path, " SUIL_MODULE_DIR" , " /lib" );
286285 export_search_path (dir_path, " GTK_PATH" , " /lib/gtkengines" );
287286
287+ setenv (" SUIL_MODULE_DIR" , (dir_path + " /lib" ).c_str (), 1 );
288288 setenv (" PATH" , (dir_path + " /bin:" + std::string (getenv (" PATH" ))).c_str (), 1 );
289289
290290 /* unset GTK_RC_FILES so that we only load the RC files that we define
0 commit comments