1
0
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:
martin 2021-02-16 22:16:58 +01:00
parent 4a49ab6755
commit 088d20ff01
9 changed files with 9 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -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;

View File

@ -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"

View File

@ -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.