HackStudio: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:17:56 +01:00
parent c13328bd2b
commit 457c7d9efd
Notes: sideshowbarker 2024-07-19 10:10:27 +09:00

View file

@ -96,6 +96,11 @@ bool make_is_available();
int main(int argc, char** argv)
{
if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
Function<void()> update_actions;