mirror of
https://github.com/electron/electron.git
synced 2026-02-13 08:35:02 -05:00
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.
14 lines
303 B
Plaintext
14 lines
303 B
Plaintext
#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];
|
|
}
|
|
|
|
}
|