mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
Taskbar: Use pledge()
This commit is contained in:
parent
f848faeec8
commit
c13328bd2b
Notes:
sideshowbarker
2024-07-19 10:10:29 +09:00
Author: https://github.com/awesomekling
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