mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-26 18:35:47 +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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user