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

@ -44,7 +44,7 @@ std::string waybar::CssReloadHelper::findPath(const std::string& filename) {
// File monitor does not work with symlinks, so resolve them
std::string original = result;
while(std::filesystem::is_symlink(result)) {
while (std::filesystem::is_symlink(result)) {
result = std::filesystem::read_symlink(result);
// prevent infinite cycle