From 081e48bafe839d5aa2c8aa070df814db013cf59d Mon Sep 17 00:00:00 2001 From: Mike Piatek-Jimenez Date: Fri, 7 Feb 2020 00:34:06 -0500 Subject: [PATCH] Fix open commands under Catalina. --- Graph Views/XRGCPUView.m | 2 +- Graph Views/XRGDiskView.m | 2 +- Graph Views/XRGNetView.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Graph Views/XRGCPUView.m b/Graph Views/XRGCPUView.m index b2e9ebf..e9eb5b4 100644 --- a/Graph Views/XRGCPUView.m +++ b/Graph Views/XRGCPUView.m @@ -413,7 +413,7 @@ - (void)openCPUPreferences:(NSEvent *)theEvent { - (void)openActivityMonitor:(NSEvent *)theEvent { [NSTask launchedTaskWithLaunchPath:@"/usr/bin/open" - arguments:@[@"/Applications/Utilities/Activity Monitor.app"] + arguments:@[@"-a", @"Activity Monitor.app"] ]; } diff --git a/Graph Views/XRGDiskView.m b/Graph Views/XRGDiskView.m index aa572f2..004927c 100644 --- a/Graph Views/XRGDiskView.m +++ b/Graph Views/XRGDiskView.m @@ -438,7 +438,7 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent { - (void)openDiskUtility:(NSEvent *)theEvent { [NSTask launchedTaskWithLaunchPath:@"/usr/bin/open" - arguments:@[@"/Applications/Utilities/Disk Utility.app"] + arguments:@[@"-a", @"Disk Utility.app"] ]; } diff --git a/Graph Views/XRGNetView.m b/Graph Views/XRGNetView.m index c058655..bedd173 100644 --- a/Graph Views/XRGNetView.m +++ b/Graph Views/XRGNetView.m @@ -371,7 +371,7 @@ - (void)openNetworkSystemPreferences:(NSEvent *)theEvent { - (void)openNetworkUtility:(NSEvent *)theEvent { [NSTask launchedTaskWithLaunchPath:@"/usr/bin/open" - arguments:@[@"/Applications/Utilities/Network Utility.app"] + arguments:@[@"-a", @"Network Utility.app"] ]; }