mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Taskbar: Make quicklaunch bar editable
This change adds a ConfigServer Listener to TaskbarWindow. Items in the quicklaunch bar may be added or removed by editing the Taskbar config.
This commit is contained in:
parent
06cb526feb
commit
480903fe8a
4 changed files with 83 additions and 38 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Debug.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/QuickSort.h>
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
|
@ -37,8 +38,9 @@ int main(int argc, char** argv)
|
|||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
Config::pledge_domains("Taskbar");
|
||||
Config::monitor_domain("Taskbar");
|
||||
app->event_loop().register_signal(SIGCHLD, [](int) {
|
||||
// Wait all available children
|
||||
while (waitpid(-1, nullptr, WNOHANG) > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue