1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 01:55:07 +00:00

TextEditor: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 23:50:05 +01:00
parent f187374c1b
commit 2067c003ff

View file

@ -1,10 +1,21 @@
#include "TextEditorWidget.h"
#include <LibDraw/PNGLoader.h>
#include <stdio.h>
int main(int argc, char** argv)
{
if (pledge("stdio rpath cpath wpath shared_buffer unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio rpath cpath wpath shared_buffer unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto window = GWindow::construct();
window->set_title("Text Editor");
window->set_rect(20, 200, 640, 400);