Atom is sent to the foreground when launched from the command line.

This commit is contained in:
Corey Johnson
2012-11-09 15:51:24 -08:00
parent f09a104524
commit 0bb384d98b

View File

@@ -83,6 +83,7 @@ void listenForPathToOpen(int fd, NSString *socketPath) {
dispatch_queue_t mainQueue = dispatch_get_main_queue();
dispatch_async(mainQueue, ^{
[[AtomApplication sharedApplication] open:path];
[NSApp activateIgnoringOtherApps:YES];
});
}
}