mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:58:12 +00:00
MenuApplets: Open the correct tab in SystemMonitor on applet click
ResourceGraph and Network applets now open their SystemMonitor tab
This commit is contained in:
parent
124518a14a
commit
8b6db78aa7
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ private:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pid_t child_pid;
|
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))) {
|
if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||||
perror("posix_spawn");
|
perror("posix_spawn");
|
||||||
|
|
|
@ -131,7 +131,7 @@ private:
|
||||||
if (event.button() != GUI::MouseButton::Left)
|
if (event.button() != GUI::MouseButton::Left)
|
||||||
return;
|
return;
|
||||||
pid_t child_pid;
|
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))) {
|
if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||||
perror("posix_spawn");
|
perror("posix_spawn");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue