fe35a92de5
We weren't setting the location of the resource bundle correctly in the renderer process. It turns out base::mac::OuterBundle() returns the helper app's bundle in the renderer process. So now we have MainApplicationBundle() to give us the bundle of the main app.
13 lines
303 B
Text
13 lines
303 B
Text
#import "common/application_name.h"
|
|
|
|
#import "common/mac/main_application_bundle.h"
|
|
|
|
#import "base/mac/foundation_util.h"
|
|
|
|
namespace brightray {
|
|
|
|
std::string GetApplicationName() {
|
|
return [[MainApplicationBundle().infoDictionary objectForKey:base::mac::CFToNSCast(kCFBundleNameKey)] UTF8String];
|
|
}
|
|
|
|
}
|