Revert using -[NSWorkspace openFile:]

This commit is contained in:
Zorg committed 2015-09-25 18:52:54 -04:00
1 parent e60baaeec8
commit e1002f0662
1 file changed
+2 -1
+2 -1
View File
@@ -214,7 +214,8 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.5;
// (Or it does become frontmost, but the OS backgrounds it afterwards.. It's some kind of timing/activation issue that doesn't occur all the time)
// The only remedy I've been able to find is waiting an arbitrary delay before exiting our application
if (![[NSWorkspace sharedWorkspace] launchApplication:relaunchPath]) {
// Don't use -launchApplication: because we may not be launching an application. Eg: it could be a system prefpane
if (![[NSWorkspace sharedWorkspace] openFile:relaunchPath]) {
SULog(@"Failed to launch %@", relaunchPath);
}