X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ffilesystem_paths.cc;h=73bfaff137f726c0b9854d9516d552ebf8d7e958;hb=3eef81daa23ebf8dffe65f02799c8383385e1128;hp=cd78397f3e6e98b7d01939d93b9f3f7f2c91ae8e;hpb=a39990dee0dd6688ef45b29aa96595e71276a0c6;p=ardour.git 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");