aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-12-02 16:47:37 -0500
committerTeddy Wing2016-12-02 16:47:37 -0500
commit8de5b8fc6a3d32a6900b5e010cc3b173ec5ecad6 (patch)
treecf5d90b09ec4ee333951874363177874b982c532
parente5debc332f2b11f4e768e0a5b0f2b8770c25523e (diff)
downloadLow-Battery-Yup-8de5b8fc6a3d32a6900b5e010cc3b173ec5ecad6.tar.bz2
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.
-rw-r--r--Low Battery Yup/DaemonLauncher.m8
1 files changed, 0 insertions, 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"];