X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fbundle_env_msvc.cc;h=3c8f98d0297d5976e28cb053364a397957849cad;hb=331d9f7154267ee7efea0f51fb140828d308fd9a;hp=c119eb29bff6345e66117c3711534f3e68aef409;hpb=4dc63966f0872efe768dad61eb9b8785d06b92d1;p=ardour.git diff --git a/gtk2_ardour/bundle_env_msvc.cc b/gtk2_ardour/bundle_env_msvc.cc index c119eb29bf..3c8f98d029 100644 --- a/gtk2_ardour/bundle_env_msvc.cc +++ b/gtk2_ardour/bundle_env_msvc.cc @@ -29,7 +29,7 @@ #include #include -#include +#include "pbd/gstdio_compat.h" #include @@ -86,7 +86,7 @@ std::string ret; if (0 == pExeRoot) { pExeRoot = g_build_filename("C:\\", "Program Files", PROGRAM_NAME, 0); } - + if (pExeRoot) { gchar tmp[PATH_MAX+1]; gchar* p; @@ -232,7 +232,7 @@ string fonts_conf_file; #ifdef DEBUG fonts_conf_file = get_module_folder(); - + if (!fonts_conf_file.empty()) { fonts_conf_file += "\\"; fonts_conf_file += PROGRAM_NAME; @@ -257,7 +257,7 @@ string pango_modules_file; #if defined(DEBUG) || defined(RDC_BUILD) // Make sure we pick up the debuggable DLLs !!! pango_modules_file = get_module_folder(); - + if (!pango_modules_file.empty()) { pango_modules_file += "\\"; pango_modules_file += PROGRAM_NAME; @@ -295,7 +295,7 @@ string gdk_pixbuf_loaders_file; #if defined(DEBUG) || defined(RDC_BUILD) // Make sure we pick up the debuggable DLLs !!! gdk_pixbuf_loaders_file = get_module_folder(); - + if (!gdk_pixbuf_loaders_file.empty()) { gdk_pixbuf_loaders_file += "\\"; gdk_pixbuf_loaders_file += PROGRAM_NAME; @@ -321,7 +321,7 @@ string clearlooks_la_file; #if defined(DEBUG) || defined(RDC_BUILD) // Make sure we pick up the debuggable DLLs !!! clearlooks_la_file = get_module_folder(); - + if (!clearlooks_la_file.empty()) { clearlooks_la_file += "\\"; clearlooks_la_file += PROGRAM_NAME; @@ -386,21 +386,6 @@ fixup_bundle_environment (int argc, char* argv[], string & localedir) Glib::setenv ("ARDOUR_CONFIG_PATH", path, true); - // Next, set up 'ARDOUR_PATH' - path = user_config_directory(); - path = Glib::path_get_dirname (path); - path += G_SEARCHPATH_SEPARATOR; - path += windows_search_path().to_string(); - path += "\\icons;"; - path += windows_search_path().to_string(); - path += "\\pixmaps;"; - path += ardour_data_search_path().to_string(); // In fact, adds both the 'data' search - path += G_SEARCHPATH_SEPARATOR; // path and our 'config' search path - path += dir_path; - path += "\\etc"; - Glib::setenv ("ARDOUR_PATH", path, true); - - // Next, set up 'ARDOUR_INSTANT_XML_PATH' path = user_config_directory(); Glib::setenv ("ARDOUR_INSTANT_XML_PATH", path, true); @@ -467,8 +452,8 @@ fixup_bundle_environment (int argc, char* argv[], string & localedir) Glib::setenv ("GTK_PATH", path, true); - // Unset GTK_RC_FILES so that we only load the RC files that we define - Glib::unsetenv ("GTK_RC_FILES"); + // Unset GTK2_RC_FILES so that we only load the RC files that we define + Glib::unsetenv ("GTK2_RC_FILES"); // and set a '$HOME' environment variable. This variable changes the value returned