From 13086d3c973794455f5122ff95b7b7c2e0c67892 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 31 May 2023 15:45:31 +0200 Subject: [PATCH] KeyboardMapper: Do not drop the `unix` pledge Without it, KeyboardMapper crashes as soon as you try to open a file. --- Userland/Applications/KeyboardMapper/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Applications/KeyboardMapper/main.cpp b/Userland/Applications/KeyboardMapper/main.cpp index 742caf2337..48588bbd58 100644 --- a/Userland/Applications/KeyboardMapper/main.cpp +++ b/Userland/Applications/KeyboardMapper/main.cpp @@ -26,9 +26,6 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd unix")); auto app = TRY(GUI::Application::create(arguments)); - - TRY(Core::System::pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd")); - auto app_icon = GUI::Icon::default_icon("app-keyboard-mapper"sv); auto window = GUI::Window::construct(); @@ -43,7 +40,7 @@ ErrorOr serenity_main(Main::Arguments arguments) else TRY(keyboard_mapper_widget->load_map_from_file(path)); - TRY(Core::System::pledge("stdio thread rpath cpath wpath recvfd sendfd")); + TRY(Core::System::pledge("stdio thread rpath cpath wpath recvfd sendfd unix")); auto open_action = GUI::CommonActions::make_open_action( [&](auto&) {