Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
Fix that launch helper is not terminated if the app is already running.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhaow committed Jul 19, 2017
1 parent 141a7e0 commit 6c71cfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Fixed
- Fix that the app will not auto start sometimes.
- Fix some logic in auto start.

## 0.10.6

Expand Down
5 changes: 3 additions & 2 deletions SpechtLiteLaunchHelper/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSString *path = [NSString pathWithComponents:pathComponents];
NSString *binaryPath = [[NSBundle bundleWithPath:path] executablePath];
[[NSWorkspace sharedWorkspace] launchApplication:binaryPath];
[NSApp terminate:nil];
}
}

[NSApp terminate:nil];
}

@end

0 comments on commit 6c71cfe

Please sign in to comment.