mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
PartitionEditor: Add missing unveils
These were somewhat found by trial and error, but it seems like this is now the required set to launch this without error.
This commit is contained in:
parent
c11860bdcd
commit
52e2095a3f
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/MacDue
Commit: 52e2095a3f
Pull-request: https://github.com/SerenityOS/serenity/pull/17860
1 changed files with 7 additions and 3 deletions
|
@ -32,14 +32,18 @@ static Vector<DeprecatedString> get_device_paths()
|
|||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
TRY(Core::System::unveil("/dev", "r"));
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/proc", "r"));
|
||||
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
|
||||
TRY(Core::System::unveil("/tmp/portal/window", "rw"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
|
||||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
|
||||
TRY(Core::System::unveil("/dev", "r"));
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-partition-editor"sv));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue