mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
QuickShow: Use pledge()
This commit is contained in:
parent
9e51291aed
commit
bb6b9d9059
1 changed files with 10 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue