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

@ -21,7 +21,8 @@ const std::vector<std::string> Config::CONFIG_DIRS = {
const char *Config::CONFIG_PATH_ENV = "WAYBAR_CONFIG_DIR";
std::optional<std::string> tryExpandPath(const std::string &base, const std::string &filename) {
std::optional<std::string> Config::tryExpandPath(const std::string &base,
const std::string &filename) {
fs::path path;
if (!filename.empty()) {