From cf48665a03d558e2379195404a42073641e47df0 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 25 Sep 2012 09:57:48 -0700 Subject: [PATCH] Open Atom src when run via Xcode --- native/atom_application.mm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/native/atom_application.mm b/native/atom_application.mm index 69cefab13..8eae08035 100644 --- a/native/atom_application.mm +++ b/native/atom_application.mm @@ -156,7 +156,14 @@ [self runSpecsThenExit:true]; } else { - [self open:[self.arguments objectForKey:@"path"]]; + NSString *path = [self.arguments objectForKey:@"path"]; + + // Just a hack to open the Atom src by default when we run from xcode + #ifdef RESOURCE_PATH + if (!path) path = [NSString stringWithUTF8String:RESOURCE_PATH]; + #endif + + [self open:path]; } }