1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

Applications: Use pledge()

Add some basic pledges to the following apps:

- Calculator
- DisplayProperties
- FontEditor
- HexEditor
- PaintBrush
This commit is contained in:
Andreas Kling 2020-01-13 12:22:49 +01:00
parent 6182a1a71c
commit 56428e764e
5 changed files with 55 additions and 0 deletions

View file

@ -9,8 +9,18 @@
int main(int argc, char** argv)
{
if (pledge("stdio shared_buffer unix rpath cpath wpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio shared_buffer rpath cpath wpath", nullptr) < 0) {
perror("pledge");
return 1;
}
RefPtr<Font> edited_font;
String path;