aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMidov <midov@midov.pl>2020-11-08 01:12:16 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-08 01:16:46 +0100
commit240767f49483672466de638e93aaa8cb47f2f854 (patch)
treef939e6bed411417264a8fc104ea9ae299701a69b
parent1c1d113d987e76fc3619302902d3d101590c7f38 (diff)
add expire time on notifications
-rw-r--r--src/Notification.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}