mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Atom is sent to the foreground when launched from the command line.
This commit is contained in:
@@ -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];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user