diff options
author | MacDue <macdue@dueutil.tech> | 2022-05-10 00:24:15 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-25 23:14:22 +0100 |
commit | 3fc0350caf09b08803b9fc399b681e1b5392fb11 (patch) | |
tree | 6b2d24650015a6054d5b938e31247185638010d5 /Userland/Applets/Keymap | |
parent | 0295d7933930ac737664374cabea3d4b1f742429 (diff) | |
download | serenity-3fc0350caf09b08803b9fc399b681e1b5392fb11.zip |
LibCore: Return ErrorOr<pid_t> and support arguments in Process::spawn
This makes the wrapper more like the rest in LibCore, and also
removes the annoying limitation of not supporting arguments.
There are three overloads one for String, char const *, and StringView
argument lists. As long as there are <= 10 arguments the argv list
will be allocated inline, otherwise on the heap.
Diffstat (limited to 'Userland/Applets/Keymap')
-rw-r--r-- | Userland/Applets/Keymap/KeymapStatusWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applets/Keymap/KeymapStatusWindow.cpp b/Userland/Applets/Keymap/KeymapStatusWindow.cpp index e2b2d9e317..ae4c1bd068 100644 --- a/Userland/Applets/Keymap/KeymapStatusWindow.cpp +++ b/Userland/Applets/Keymap/KeymapStatusWindow.cpp @@ -16,7 +16,7 @@ void KeymapStatusWidget::mousedown_event(GUI::MouseEvent& event) if (event.button() != GUI::MouseButton::Primary) return; - Core::Process::spawn("/bin/KeyboardSettings"); + MUST(Core::Process::spawn("/bin/KeyboardSettings")); } KeymapStatusWindow::KeymapStatusWindow() |