diff options
-rw-r--r-- | libs/ardour/filesystem_paths.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc index cd78397f3e..73bfaff137 100644 --- a/libs/ardour/filesystem_paths.cc +++ b/libs/ardour/filesystem_paths.cc @@ -39,7 +39,9 @@ using std::string; std::string user_config_directory () { - std::string p; + static std::string p; + + if (!p.empty()) return p; #ifdef __APPLE__ p = Glib::build_filename (Glib::get_home_dir(), "Library/Preferences"); |