Merge pull request #1784 from ruanformigoni/issue-1681

exec runs after on-* events
This commit is contained in:
Alexis Rouillard
2025-06-22 08:50:48 +01:00
committed by GitHub
3 changed files with 12 additions and 5 deletions

View File

@ -35,6 +35,13 @@ waybar::modules::Custom::~Custom() {
void waybar::modules::Custom::delayWorker() {
thread_ = [this] {
for (int i: this->pid_children_) {
int status;
waitpid(i, &status, 0);
}
this->pid_children_.clear();
bool can_update = true;
if (config_["exec-if"].isString()) {
output_ = util::command::execNoRead(config_["exec-if"].asString());