1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 11:45:11 +00:00
serenity/Applications/Taskbar/main.cpp
2020-01-11 21:33:12 +01:00

29 lines
583 B
C++

#include "TaskbarWindow.h"
#include <LibGUI/GApplication.h>
#include <signal.h>
#include <stdio.h>
int main(int argc, char** argv)
{
if (pledge("stdio shared_buffer proc rpath unix cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio shared_buffer proc rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
TaskbarWindow window;
window.show();
signal(SIGCHLD, [](int signo) {
(void)signo;
wait(nullptr);
});
return app.exec();
}