1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

WorkspacePicker: Allow opening workspace settings via a context menu

Previously you had to open Display Settings and navigate to the
"Workspaces" tab in order to edit workspace settings. This patch adds a
context menu shortcut to the same place.
This commit is contained in:
Andreas Kling 2022-08-13 21:04:11 +02:00
parent c3eaa73113
commit 2121760700
2 changed files with 37 additions and 3 deletions

View file

@ -15,7 +15,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath proc exec unix"));
auto app = TRY(GUI::Application::try_create(arguments));
app->set_quit_when_last_window_deleted(false);
@ -23,7 +23,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
// We need to obtain the WM connection here as well before the pledge shortening.
GUI::ConnectionToWindowManagerServer::the();
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath proc exec"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil("/bin/DisplaySettings", "x"));
auto window = TRY(DesktopStatusWindow::try_create());
window->set_title("WorkspacePicker");