From 78fce9e810e48095be9d1a81a31df49db9a4d5b3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 9 Jun 2021 16:41:10 +0200 Subject: Show critical notification before abort on critical error --- src/Notification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Notification.cpp') diff --git a/src/Notification.cpp b/src/Notification.cpp index 0507a98..791f4b2 100644 --- a/src/Notification.cpp +++ b/src/Notification.cpp @@ -18,8 +18,8 @@ namespace QuickMedia { } void show_notification(const std::string &title, const std::string &description, Urgency urgency) { + fprintf(stderr, "Notification: title: %s, description: %s\n", title.c_str(), description.c_str()); 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()); } } \ No newline at end of file -- cgit v1.2.3