summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-26 13:54:56 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-26 13:54:56 +0100
commit3020f5efd961fcd0dbc8430c97ef1bfc12817d56 (patch)
treef02bb094c7ca311c2a72dedcb9fdd760e7d2c232
parentb8a9f433f93c18669c016dd6f4aa0e3e069160a1 (diff)
downloadserenity-3020f5efd961fcd0dbc8430c97ef1bfc12817d56.zip
Taskbar: Add more prominent Help app icon in the start menu
-rw-r--r--Userland/Services/Taskbar/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp
index 49ff63f53b..bc16386134 100644
--- a/Userland/Services/Taskbar/main.cpp
+++ b/Userland/Services/Taskbar/main.cpp
@@ -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 };