Merge pull request #4333 from Arkoniak/relative_paths_in_includes

Relative paths in included configs
This commit is contained in:
Alexis Rouillard
2025-08-08 08:53:55 +02:00
committed by GitHub
4 changed files with 27 additions and 5 deletions

View File

@ -14,6 +14,9 @@ waybar::modules::Custom::Custom(const std::string& name, const std::string& id,
percentage_(0),
fp_(nullptr),
pid_(-1) {
if (config.isNull()) {
spdlog::warn("There is no configuration for 'custom/{}', element will be hidden", name);
}
dp.emit();
if (!config_["signal"].empty() && config_["interval"].empty() &&
config_["restart-interval"].empty()) {