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]; } }