mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
Taskbar: Add more prominent Help app icon in the start menu
This commit is contained in:
parent
b8a9f433f9
commit
3020f5efd9
1 changed files with 10 additions and 0 deletions
|
@ -208,6 +208,16 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
|
|||
}
|
||||
|
||||
system_menu->add_separator();
|
||||
system_menu->add_action(GUI::Action::create("Help", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-help.png"), [](auto&) {
|
||||
pid_t child_pid;
|
||||
const char* argv[] = { "/bin/Help", nullptr };
|
||||
if ((errno = posix_spawn(&child_pid, "/bin/Help", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
perror("posix_spawn");
|
||||
} else {
|
||||
if (disown(child_pid) < 0)
|
||||
perror("disown");
|
||||
}
|
||||
}));
|
||||
system_menu->add_action(GUI::Action::create("Run...", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-run.png"), [](auto&) {
|
||||
pid_t child_pid;
|
||||
const char* argv[] = { "/bin/Run", nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue