diff options
author | TheMorc <r.gracik@gmail.com> | 2021-01-08 01:06:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-09 13:27:23 +0100 |
commit | 8b6db78aa7bfb41fca6c0fb09cbe0f773d2f3436 (patch) | |
tree | 91196c6547876defd6679e62b6365f1b79c97751 | |
parent | 124518a14a94a7b5d9098d2805dd4aed983d7753 (diff) | |
download | serenity-8b6db78aa7bfb41fca6c0fb09cbe0f773d2f3436.zip |
MenuApplets: Open the correct tab in SystemMonitor on applet click
ResourceGraph and Network applets now open their SystemMonitor tab
-rw-r--r-- | MenuApplets/Network/main.cpp | 2 | ||||
-rw-r--r-- | MenuApplets/ResourceGraph/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MenuApplets/Network/main.cpp b/MenuApplets/Network/main.cpp index 64896228f2..79724eab8b 100644 --- a/MenuApplets/Network/main.cpp +++ b/MenuApplets/Network/main.cpp @@ -60,7 +60,7 @@ private: return; pid_t child_pid; - const char* argv[] = { "SystemMonitor", nullptr }; + const char* argv[] = { "SystemMonitor", "-t", "network", nullptr }; if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) { perror("posix_spawn"); diff --git a/MenuApplets/ResourceGraph/main.cpp b/MenuApplets/ResourceGraph/main.cpp index 465ba97dec..6ca8157ffa 100644 --- a/MenuApplets/ResourceGraph/main.cpp +++ b/MenuApplets/ResourceGraph/main.cpp @@ -131,7 +131,7 @@ private: if (event.button() != GUI::MouseButton::Left) return; pid_t child_pid; - const char* argv[] = { "SystemMonitor", nullptr }; + const char* argv[] = { "SystemMonitor", "-t", "graphs", nullptr }; if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) { perror("posix_spawn"); } else { |