Now using [[NSWorkspace sharedWorkspace] openFile:] instead of [[NSWorkspace sharedWorkspace] launchApplication:]. This will help with things like preference panes, which will now appropriately relaunch system preferences.

This commit is contained in:
Andy Matuschak committed 2008-06-20 22:08:14 -07:00
1 parent c2c3a6853c
commit aba39e3429
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@
- (void) relaunch
{
[[NSWorkspace sharedWorkspace] launchApplication:[NSString stringWithUTF8String:executablePath]];
[[NSWorkspace sharedWorkspace] openFile:[NSString stringWithUTF8String:executablePath]];
[[NSFileManager defaultManager] removeFileAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"relaunch"] handler:nil];
exit(0);
}