diff --git a/launchers/darwin/src/Launcher.m b/launchers/darwin/src/Launcher.m index 8e9f5a982e..1a84e9143d 100644 --- a/launchers/darwin/src/Launcher.m +++ b/launchers/darwin/src/Launcher.m @@ -226,15 +226,9 @@ static BOOL const DELETE_ZIP_FILES = TRUE; NSWorkspace* workspace = [NSWorkspace sharedWorkspace]; NSArray* apps = [workspace runningApplications]; for (NSRunningApplication* app in apps) { - NSLog(@"app: %@", [app bundleIdentifier]); if ([[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface"] || [[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface-pr"]) { - pid_t pid = [app processIdentifier]; - int status = kill(pid, SIGTERM); - - NSLog(@"exit status %d", status); - /*BOOL success = [app forceTerminate]; - NSLog(success ? @"SUCCESSSFUL" : @"NOT SUCCESSFUL");*/ + [app terminate]; self.waitingForInterfaceToTerminate = true; } } diff --git a/launchers/darwin/src/main.mm b/launchers/darwin/src/main.mm index 4d66d15549..b6555aad87 100644 --- a/launchers/darwin/src/main.mm +++ b/launchers/darwin/src/main.mm @@ -17,7 +17,7 @@ void redirectLogToDocuments() int main(int argc, const char* argv[]) { //NSApp.appearance = [NSAppearance appearanceNamed: NSAppearanceNameAqua]; - //redirectLogToDocuments(); + redirectLogToDocuments(); NSArray* apps = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.highfidelity.launcher"]; if ([apps count] > 1) { NSLog(@"launcher is already running");