diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-09 16:41:10 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-09 16:41:10 +0200 |
commit | 78fce9e810e48095be9d1a81a31df49db9a4d5b3 (patch) | |
tree | 233a7943ffa63a1cbba675a8cad2c497862ebbc7 /src/Notification.cpp | |
parent | 9409d8f67f856da0ecfb2a485c2a757c2338469e (diff) |
Show critical notification before abort on critical error
Diffstat (limited to 'src/Notification.cpp')
-rw-r--r-- | src/Notification.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |