mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 07:31:23 +02:00
fix signing crash
This commit is contained in:
parent
afb5f81ca0
commit
99991c3259
4 changed files with 22 additions and 10 deletions
|
@ -4,13 +4,19 @@
|
||||||
<dict>
|
<dict>
|
||||||
<key>com.apple.security.app-sandbox</key>
|
<key>com.apple.security.app-sandbox</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>high-fidelity.hifi</string>
|
||||||
|
</array>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.device.audio-input</key>
|
||||||
|
<true/>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.network.server</key>
|
<key>com.apple.security.network.server</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.application-groups</key>
|
|
||||||
<array>
|
|
||||||
<string>high-fidelity.hifi</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
<dict>
|
<dict>
|
||||||
<key>com.apple.security.app-sandbox</key>
|
<key>com.apple.security.app-sandbox</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>high-fidelity.hifi</string>
|
||||||
|
</array>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.application-groups</key>
|
|
||||||
<array>
|
|
||||||
<string>high-fideilty.hifi</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -226,9 +226,15 @@ static BOOL const DELETE_ZIP_FILES = TRUE;
|
||||||
NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
|
NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
|
||||||
NSArray* apps = [workspace runningApplications];
|
NSArray* apps = [workspace runningApplications];
|
||||||
for (NSRunningApplication* app in apps) {
|
for (NSRunningApplication* app in apps) {
|
||||||
|
NSLog(@"app: %@", [app bundleIdentifier]);
|
||||||
if ([[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface"] ||
|
if ([[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface"] ||
|
||||||
[[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface-pr"]) {
|
[[app bundleIdentifier] isEqualToString:@"com.highfidelity.interface-pr"]) {
|
||||||
[app terminate];
|
pid_t pid = [app processIdentifier];
|
||||||
|
int status = kill(pid, SIGTERM);
|
||||||
|
|
||||||
|
NSLog(@"exit status %d", status);
|
||||||
|
/*BOOL success = [app forceTerminate];
|
||||||
|
NSLog(success ? @"SUCCESSSFUL" : @"NOT SUCCESSFUL");*/
|
||||||
self.waitingForInterfaceToTerminate = true;
|
self.waitingForInterfaceToTerminate = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ void redirectLogToDocuments()
|
||||||
|
|
||||||
int main(int argc, const char* argv[]) {
|
int main(int argc, const char* argv[]) {
|
||||||
//NSApp.appearance = [NSAppearance appearanceNamed: NSAppearanceNameAqua];
|
//NSApp.appearance = [NSAppearance appearanceNamed: NSAppearanceNameAqua];
|
||||||
redirectLogToDocuments();
|
//redirectLogToDocuments();
|
||||||
NSArray* apps = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.highfidelity.launcher"];
|
NSArray* apps = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.highfidelity.launcher"];
|
||||||
if ([apps count] > 1) {
|
if ([apps count] > 1) {
|
||||||
NSLog(@"launcher is already running");
|
NSLog(@"launcher is already running");
|
||||||
|
|
Loading…
Reference in a new issue