diff --git a/repertory/repertory/src/ui/mgmt_app_config.cpp b/repertory/repertory/src/ui/mgmt_app_config.cpp index 82d99b8..a45565d 100644 --- a/repertory/repertory/src/ui/mgmt_app_config.cpp +++ b/repertory/repertory/src/ui/mgmt_app_config.cpp @@ -40,7 +40,7 @@ template {repertory::provider_type::remote, nlohmann::json::object()}, {repertory::provider_type::s3, nlohmann::json::object()}, {repertory::provider_type::sia, nlohmann::json::object()}, - }; + }; if (json.is_null() || json.empty()) { return map_of_maps; @@ -390,12 +390,14 @@ void mgmt_app_config::set_mount_location(provider_type prov, return; } + auto resolved_location = utils::path::absolute(location); + recur_mutex_lock lock(mtx_); - if (locations_[prov][std::string{name}] == std::string{location}) { + if (locations_[prov][std::string{name}] == resolved_location) { return; } - locations_[prov][std::string{name}] = std::string{location}; + locations_[prov][std::string{name}] = resolved_location; save(); }