From 8de5b8fc6a3d32a6900b5e010cc3b173ec5ecad6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 2 Dec 2016 16:47:37 -0500 Subject: Revert "DaemonLauncher.m: Check if daemon is running before launch or quit" This reverts commit e5debc332f2b11f4e768e0a5b0f2b8770c25523e. Actually, I don't really like that. The methods should instead do first and error if it doesn't work. Why bother checking? We'll keep the `isRunning` method around though because we need it to know what the "Launch Application" button should read. --- Low Battery Yup/DaemonLauncher.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Low Battery Yup/DaemonLauncher.m b/Low Battery Yup/DaemonLauncher.m index b96af44..355e9fd 100644 --- a/Low Battery Yup/DaemonLauncher.m +++ b/Low Battery Yup/DaemonLauncher.m @@ -12,10 +12,6 @@ - (BOOL)launch { - if ([self isRunning]) { - return NO; - } - NSURL *daemon_url = [[NSBundle mainBundle] URLForResource:@"Low Battery Yup.d" withExtension:@"app"]; NSError *error = nil; @@ -35,10 +31,6 @@ - (BOOL)quit { - if (![self isRunning]) { - return NO; - } - NSArray *applications = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.teddywing.Low-Battery-Yup-d"]; -- cgit v1.2.3