diff options
Diffstat (limited to 'base/mac_util.mm')
-rw-r--r-- | base/mac_util.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm index b2e9b6e..dcfb6470 100644 --- a/base/mac_util.mm +++ b/base/mac_util.mm @@ -46,8 +46,7 @@ bool AmIBundled() { bool IsBackgroundOnlyProcess() { NSBundle* main_bundle = MainAppBundle(); NSDictionary* info_dictionary = [main_bundle infoDictionary]; - return [[info_dictionary objectForKey:@"LSUIElement"] - isEqualToString:@"1"] ? true : false; + return [[info_dictionary objectForKey:@"LSUIElement"] boolValue] != NO; } // No threading worries since NSBundle isn't thread safe. |