From dc439b59639e05712c03fcb915394350825e0c81 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sat, 20 Apr 2024 18:23:01 -0700 Subject: [PATCH] Fix path --- modules/chttrans/chttrans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chttrans/chttrans.cpp b/modules/chttrans/chttrans.cpp index 26fc85b..6277667 100644 --- a/modules/chttrans/chttrans.cpp +++ b/modules/chttrans/chttrans.cpp @@ -246,7 +246,7 @@ const Configuration *Chttrans::getConfig() const { {"default", _("Default")}}; constexpr std::string_view JsonSuffix = ".json"; auto files = - openCCStandardPath().multiOpen(StandardPath::Type::Data, "", O_RDONLY, + openCCStandardPath().multiOpen(StandardPath::Type::PkgData, ".", O_RDONLY, filter::Suffix(std::string(JsonSuffix))); profiles.reserve(files.size() + 1); // files is std::map, so file name is already sorted.