mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-01-13 10:22:04 +02:00
Allow Win/Linux to use external helper
This commit is contained in:
parent
4a49ab6755
commit
088d20ff01
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
@ -21,7 +21,9 @@ begin
|
||||
// The main process and the subprocess *MUST* have the same GlobalCEFApp
|
||||
// properties and events, specially FrameworkDirPath, ResourcesDirPath,
|
||||
// LocalesDirPath, cache and UserDataPath paths.
|
||||
{$IFDEF MACOSX}
|
||||
GlobalCEFApp.InitLibLocationFromArgs;
|
||||
{$ENDIF}
|
||||
|
||||
GlobalCEFApp.StartSubProcess;
|
||||
GlobalCEFApp.Free;
|
@ -3,6 +3,6 @@
|
||||
CDIR=$(pwd)
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
../../Lazarus_Mac/AppHelper/create_mac_helper_apps.sh ../../../bin/ExternalPumpBrowser.app
|
||||
../AppHelper/create_mac_helper_apps.sh ../../../bin/ExternalPumpBrowser.app
|
||||
|
||||
cd "$CDIR"
|
||||
|
@ -6,7 +6,7 @@ unit GlobalCefApplication;
|
||||
interface
|
||||
|
||||
uses
|
||||
uCEFApplication, uCEFWorkScheduler;
|
||||
uCEFApplication, uCEFWorkScheduler, FileUtil;
|
||||
|
||||
procedure CreateGlobalCEFApp;
|
||||
|
||||
@ -33,6 +33,11 @@ begin
|
||||
GlobalCEFApp.MultiThreadedMessageLoop := False;
|
||||
GlobalCEFApp.OnScheduleMessagePumpWork := @GlobalCEFApp_OnScheduleMessagePumpWork;
|
||||
|
||||
{$IFnDEF MACOSX}
|
||||
(* Use AppHelper as subprocess, instead of the main exe *)
|
||||
//GlobalCEFApp.BrowserSubprocessPath := 'AppHelper' + GetExeExt;
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF MACOSX}
|
||||
(* Enable the below to prevent being asked for permission to access "Chromium Safe Storage"
|
||||
If set to true, Cookies will not be encrypted.
|
||||
|
Loading…
x
Reference in New Issue
Block a user