mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Taskbar: Use pledge()
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user