aboutsummaryrefslogtreecommitdiff
path: root/src/VideoPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r--src/VideoPlayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 95a3bd4..adebddc 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -2,6 +2,7 @@
#include "../include/Storage.hpp"
#include "../include/Program.hpp"
#include "../include/Utils.hpp"
+#include "../include/Notification.hpp"
#include <string>
#include <json/reader.h>
#include <json/writer.h>
@@ -43,7 +44,7 @@ namespace QuickMedia {
{
display = XOpenDisplay(NULL);
if (!display) {
- fprintf(stderr, "Failed to open display to X11 server\n");
+ show_notification("QuickMedia", "Failed to open display to X11 server", Urgency::CRITICAL);
abort();
}
fprintf(stderr, "Video max height: %d\n", monitor_height);