From 1d86e8dfa9d5926fa72374174c63c620218aa896 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 4 Jul 2026 03:09:20 +0200 Subject: [PATCH] fix(custom/graph): guard signal config with isInt() to avoid SIGABRT refresh() called config_["signal"].asInt() unconditionally on every RT signal; a non-integer "signal" value throws Json::LogicError and aborts Waybar. Matches the guard already present in custom/image/idle_inhibitor. Fixes #3514. --- src/modules/custom_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/custom_graph.cpp b/src/modules/custom_graph.cpp index 0f236304..8b0c70af 100644 --- a/src/modules/custom_graph.cpp +++ b/src/modules/custom_graph.cpp @@ -139,7 +139,7 @@ void waybar::modules::CustomGraph::waitingWorker() { } void waybar::modules::CustomGraph::refresh(int sig) { - if (sig == SIGRTMIN + config_["signal"].asInt()) { + if (config_["signal"].isInt() && sig == SIGRTMIN + config_["signal"].asInt()) { thread_.wake_up(); } }