mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
macOS: Support configuration of the main bundle path (fixes issue #2729)
This commit is contained in:
committed by
Marshall Greenblatt
parent
cd8efe748c
commit
ffb9266853
@@ -65,6 +65,12 @@ base::FilePath GetMainProcessPath() {
|
||||
}
|
||||
|
||||
base::FilePath GetMainBundlePath() {
|
||||
base::FilePath main_bundle_path =
|
||||
base::CommandLine::ForCurrentProcess()->GetSwitchValuePath(
|
||||
switches::kMainBundlePath);
|
||||
if (!main_bundle_path.empty())
|
||||
return main_bundle_path;
|
||||
|
||||
return base::mac::GetAppBundlePath(GetMainProcessPath());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user