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

Taskbar: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:17:47 +01:00
parent f848faeec8
commit c13328bd2b

View file

@ -1,10 +1,22 @@
#include "TaskbarWindow.h"
#include <LibGUI/GApplication.h>
#include <signal.h>
#include <stdio.h>
int main(int argc, char** argv)
{
if (pledge("stdio shared_buffer proc rpath unix cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio shared_buffer proc rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
TaskbarWindow window;
window.show();