mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
We deduce the name of the application from the CFBundleName of the .app bundle and use a path based on that. Similar logic should be implementable for other platforms. Fixes #3.
13 lines
294 B
Plaintext
13 lines
294 B
Plaintext
#import "common/application_name.h"
|
|
|
|
#import "base/mac/bundle_locations.h"
|
|
#import "base/mac/foundation_util.h"
|
|
|
|
namespace brightray {
|
|
|
|
std::string GetApplicationName() {
|
|
return [[base::mac::OuterBundle().infoDictionary objectForKey:base::mac::CFToNSCast(kCFBundleNameKey)] UTF8String];
|
|
}
|
|
|
|
}
|