mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
KeyboardMapper: Do not drop the unix
pledge
Without it, KeyboardMapper crashes as soon as you try to open a file.
This commit is contained in:
parent
9e496a96a6
commit
13086d3c97
1 changed files with 1 additions and 4 deletions
|
@ -26,9 +26,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
TRY(Core::System::pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd unix"));
|
TRY(Core::System::pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd unix"));
|
||||||
|
|
||||||
auto app = TRY(GUI::Application::create(arguments));
|
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 app_icon = GUI::Icon::default_icon("app-keyboard-mapper"sv);
|
||||||
|
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
|
@ -43,7 +40,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
else
|
else
|
||||||
TRY(keyboard_mapper_widget->load_map_from_file(path));
|
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 open_action = GUI::CommonActions::make_open_action(
|
||||||
[&](auto&) {
|
[&](auto&) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue