Parcourir la source

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 il y a 2 ans
Parent
commit
5b906d9a40
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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"));
 
     auto app = TRY(GUI::Application::try_create(arguments));
-    Config::pledge_domains({ "HackStudio", "Terminal" });
+    Config::pledge_domains({ "HackStudio", "Terminal", "FileManager" });
 
     auto window = GUI::Window::construct();
     window->resize(840, 600);