From 240767f49483672466de638e93aaa8cb47f2f854 Mon Sep 17 00:00:00 2001 From: Midov Date: Sun, 8 Nov 2020 01:12:16 +0100 Subject: add expire time on notifications --- src/Notification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notification.cpp b/src/Notification.cpp index 9ffbaac..0507a98 100644 --- a/src/Notification.cpp +++ b/src/Notification.cpp @@ -18,7 +18,7 @@ namespace QuickMedia { } void show_notification(const std::string &title, const std::string &description, Urgency urgency) { - const char *args[] = { "notify-send", "-u", urgency_string(urgency), "--", title.c_str(), description.c_str(), nullptr }; + const char *args[] = { "notify-send", "-t", "10000", "-u", urgency_string(urgency), "--", title.c_str(), description.c_str(), nullptr }; exec_program_async(args, nullptr); fprintf(stderr, "Notification: title: %s, description: %s\n", title.c_str(), description.c_str()); } -- cgit v1.2.3