summaryrefslogtreecommitdiff
path: root/Userland/Applications/PDFViewer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PDFViewer/main.cpp')
-rw-r--r--Userland/Applications/PDFViewer/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/main.cpp b/Userland/Applications/PDFViewer/main.cpp
index 831c5b78b5..240194c5c4 100644
--- a/Userland/Applications/PDFViewer/main.cpp
+++ b/Userland/Applications/PDFViewer/main.cpp
@@ -6,6 +6,7 @@
*/
#include "PDFViewerWidget.h"
+#include <LibConfig/Client.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/System.h>
#include <LibFileSystemAccessClient/Client.h>
@@ -25,7 +26,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
auto app_icon = GUI::Icon::default_icon("app-pdf-viewer");
- auto window = GUI::Window::construct();
+ Config::pledge_domain("PDFViewer");
+
+ auto window = TRY(GUI::Window::try_create());
window->set_title("PDF Viewer");
window->resize(640, 400);