QuickShow: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-12 02:02:44 +01:00
commit bb6b9d9059
Notes: sideshowbarker 2024-07-19 10:09:41 +09:00

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");