mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 20:58:30 +02:00
remove debug stuff
This commit is contained in:
parent
99991c3259
commit
f3a09e0156
2 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue