Bladeren bron

HackStudio: Add configuration domain pledge for FileManager

This fixes a bug where clicking the "Save" button would crash the
application because 'FileManager' was a pledged domain.
Evan Smal 2 jaren geleden
bovenliggende
commit
5b906d9a40
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      Userland/DevTools/HackStudio/main.cpp

+ 1 - 1
Userland/DevTools/HackStudio/main.cpp

@@ -42,7 +42,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     TRY(Core::System::pledge("stdio recvfd sendfd tty rpath cpath wpath proc exec unix fattr thread ptrace"));
     TRY(Core::System::pledge("stdio recvfd sendfd tty rpath cpath wpath proc exec unix fattr thread ptrace"));
 
 
     auto app = TRY(GUI::Application::try_create(arguments));
     auto app = TRY(GUI::Application::try_create(arguments));
-    Config::pledge_domains({ "HackStudio", "Terminal" });
+    Config::pledge_domains({ "HackStudio", "Terminal", "FileManager" });
 
 
     auto window = GUI::Window::construct();
     auto window = GUI::Window::construct();
     window->resize(840, 600);
     window->resize(840, 600);