1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

Solitaire: Remove wpath and cpath pledges and pledge earlier

With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
This commit is contained in:
Luke Wilde 2021-08-27 15:26:34 +01:00 committed by Ali Mohammad Pur
parent 4332b35798
commit 34dc275005

View file

@ -23,12 +23,17 @@
int main(int argc, char** argv)
{
if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
auto app_icon = GUI::Icon::default_icon("app-solitaire");
Config::pledge_domains("Solitaire");
if (pledge("stdio recvfd sendfd rpath wpath cpath", nullptr) < 0) {
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
perror("pledge");
return 1;
}