From aba39e342914cc5f6dbfe6e3ed755dbb327190a1 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Fri, 20 Jun 2008 22:08:14 -0700 Subject: [PATCH] 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. --- relaunch.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relaunch.m b/relaunch.m index 060c45ce..46d52496 100644 --- a/relaunch.m +++ b/relaunch.m @@ -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); }