mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
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:
1 parent
c2c3a6853c
commit
aba39e3429
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user