From 418cd7b3816b5eb0a435a1cb148630d449cd0193 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 22 Jun 2021 18:10:02 +0200 Subject: [PATCH] Switch to normal urgency desktop notifications These critical notifications don't expire under KDE Plasma, which would mean that you'd get absolutely flooded with notifications you have to manually close when something is wrong. --- src/plugin/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/utils.cpp b/src/plugin/utils.cpp index a09ff04d..f56e6ba5 100644 --- a/src/plugin/utils.cpp +++ b/src/plugin/utils.cpp @@ -394,8 +394,8 @@ Configuration load_config_for(const fs::path& yabridge_path) { bool send_notification(const std::string& title, const std::string body) { try { - return bp::system(bp::search_path("notify-send"), "--urgency=critical", - "--expire-time=20000", "--app-name=yabridge", title, + return bp::system(bp::search_path("notify-send"), "--urgency=normal", + "--expire-time=30000", "--app-name=yabridge", title, body) == EXIT_SUCCESS; } catch (const boost::process::process_error&) { // We will have printed the message to the terminal anyways, so if the