Relative paths in included configs

This commit is contained in:
Arkoniak
2025-07-29 10:45:31 +03:00
parent 0776e694df
commit f824ae9334
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()) {