From d6a07daf4ca8c7b16ae332eb8ecc2de93bf4eb46 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Thu, 3 Sep 2020 19:24:58 +0200 Subject: Do not call the power settings handler if the command is unknown Fixes AyatanaIndicators/ayatana-indicator-power#12. --- src/utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 17e3a9c..96a9b1b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -134,7 +134,10 @@ utils_handle_settings_request (void) } } - execute_command (control_center_cmd); + if (control_center_cmd) + { + execute_command(control_center_cmd); + } } gboolean -- cgit v1.2.3