mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Taskbar: Use pledge()
This commit is contained in:
parent
f848faeec8
commit
c13328bd2b
1 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue