MenuApplets: Open the correct tab in SystemMonitor on applet click

ResourceGraph and Network applets now open their SystemMonitor tab
This commit is contained in:
TheMorc 2021-01-08 01:06:45 +01:00 committed by Andreas Kling
parent 124518a14a
commit 8b6db78aa7
Notes: sideshowbarker 2024-07-19 00:01:11 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -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 {