summaryrefslogtreecommitdiff
path: root/Userland/Applications/VideoPlayer
diff options
context:
space:
mode:
authorCaoimhe <caoimhebyrne06@gmail.com>2023-05-11 11:40:00 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-05-14 15:56:49 -0600
commit61add64f0f6766160716a771ca30a562ba2a50bd (patch)
tree413313dac68009606424cf5fa9095a47fb790e8f /Userland/Applications/VideoPlayer
parent17a1e2eed13a2b9e02d358fdb2a961aa73f928b7 (diff)
downloadserenity-61add64f0f6766160716a771ca30a562ba2a50bd.zip
VideoPlayer: Pledge the "VideoPlayer" configuration domain
Diffstat (limited to 'Userland/Applications/VideoPlayer')
-rw-r--r--Userland/Applications/VideoPlayer/CMakeLists.txt2
-rw-r--r--Userland/Applications/VideoPlayer/main.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Applications/VideoPlayer/CMakeLists.txt b/Userland/Applications/VideoPlayer/CMakeLists.txt
index 20aaabd61d..84baf49f57 100644
--- a/Userland/Applications/VideoPlayer/CMakeLists.txt
+++ b/Userland/Applications/VideoPlayer/CMakeLists.txt
@@ -17,4 +17,4 @@ set(GENERATED_SOURCES
)
serenity_app(VideoPlayer ICON app-video-player)
-target_link_libraries(VideoPlayer PRIVATE LibVideo LibAudio LibCore LibGfx LibGUI LibMain LibFileSystemAccessClient)
+target_link_libraries(VideoPlayer PRIVATE LibVideo LibAudio LibConfig LibCore LibGfx LibGUI LibMain LibFileSystemAccessClient)
diff --git a/Userland/Applications/VideoPlayer/main.cpp b/Userland/Applications/VideoPlayer/main.cpp
index 8d8bd6a540..24164de59e 100644
--- a/Userland/Applications/VideoPlayer/main.cpp
+++ b/Userland/Applications/VideoPlayer/main.cpp
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
+#include <LibConfig/Client.h>
#include <LibCore/ArgsParser.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
@@ -19,7 +20,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_positional_argument(filename, "The video file to display.", "filename", Core::ArgsParser::Required::No);
args_parser.parse(arguments);
+ Config::pledge_domain("VideoPlayer");
+
auto app = TRY(GUI::Application::create(arguments));
+ app->set_config_domain(TRY("VideoPlayer"_string));
+
auto window = TRY(GUI::Window::try_create());
window->resize(640, 480);
window->set_resizable(true);