From 2c2f7a2fcccac98401b533b98ea7a41dbca1cf57 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Nov 2011 21:24:09 +0000 Subject: [PATCH] clean up settings of various bundle paths git-svn-id: svn://localhost/ardour2/branches/3.0@10593 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/main.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 4d092cd28a..6c868978b1 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -140,8 +140,7 @@ fixup_bundle_environment (int, char* []) _NSGetExecutablePath (execpath, &pathsz); - std::string exec_path (execpath); - std::string dir_path = Glib::path_get_dirname (exec_path); + std::string dir_path = Glib::path_get_dirname (execpath); std::string path; const char *cstr = getenv ("PATH"); @@ -169,9 +168,9 @@ fixup_bundle_environment (int, char* []) path = dir_path; path += "/../Resources"; path += dir_path; - path += "/../Resources/Surfaces"; + path += "/../Surfaces"; path += dir_path; - path += "/../Resources/Panners"; + path += "/../Panners"; setenv ("ARDOUR_MODULE_PATH", path.c_str(), 1); @@ -296,8 +295,7 @@ fixup_bundle_environment (int /*argc*/, char* argv[]) EnvironmentalProtectionAgency::set_global_epa (new EnvironmentalProtectionAgency (true, "PREBUNDLE_ENV")); - Glib::ustring exec_path = argv[0]; - Glib::ustring dir_path = Glib::path_get_dirname (Glib::path_get_dirname (exec_path)); + Glib::ustring dir_path = Glib::path_get_dirname (Glib::path_get_dirname (argv[0])); Glib::ustring path; Glib::ustring userconfigdir = user_config_directory().to_string();