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

QuickShow: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-12 02:02:44 +01:00
parent 9e51291aed
commit bb6b9d9059

View file

@ -11,8 +11,18 @@
int main(int argc, char** argv)
{
if (pledge("stdio unix shared_buffer rpath cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
auto menubar = make<GMenuBar>();
auto app_menu = GMenu::construct("QuickShow");