diff options
-rw-r--r-- | base/mac_util.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm index dcfb6470..1fce49a 100644 --- a/base/mac_util.mm +++ b/base/mac_util.mm @@ -44,8 +44,11 @@ bool AmIBundled() { } bool IsBackgroundOnlyProcess() { - NSBundle* main_bundle = MainAppBundle(); - NSDictionary* info_dictionary = [main_bundle infoDictionary]; + // This function really does want to examine NSBundle's idea of the main + // bundle dictionary, and not the overriden MainAppBundle. It needs to look + // at the actual running .app's Info.plist to access its LSUIElement + // property. + NSDictionary* info_dictionary = [[NSBundle mainBundle] infoDictionary]; return [[info_dictionary objectForKey:@"LSUIElement"] boolValue] != NO; } |