fix #3490: expand menu file before opening it

This commit is contained in:
yangyingchao
2024-08-01 17:47:10 +08:00
parent 003dd3a9a2
commit 7ec1343ad5
4 changed files with 17 additions and 3 deletions

View File

@ -20,6 +20,9 @@ class Config {
static std::optional<std::string> findConfigPath(
const std::vector<std::string> &names, const std::vector<std::string> &dirs = CONFIG_DIRS);
static std::optional<std::string> tryExpandPath(const std::string &base,
const std::string &filename);
Config() = default;
void load(const std::string &config);