mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-05-13 21:46:53 +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
|
// The main process and the subprocess *MUST* have the same GlobalCEFApp
|
||||||
// properties and events, specially FrameworkDirPath, ResourcesDirPath,
|
// properties and events, specially FrameworkDirPath, ResourcesDirPath,
|
||||||
// LocalesDirPath, cache and UserDataPath paths.
|
// LocalesDirPath, cache and UserDataPath paths.
|
||||||
|
{$IFDEF MACOSX}
|
||||||
GlobalCEFApp.InitLibLocationFromArgs;
|
GlobalCEFApp.InitLibLocationFromArgs;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
GlobalCEFApp.StartSubProcess;
|
GlobalCEFApp.StartSubProcess;
|
||||||
GlobalCEFApp.Free;
|
GlobalCEFApp.Free;
|
@ -3,6 +3,6 @@
|
|||||||
CDIR=$(pwd)
|
CDIR=$(pwd)
|
||||||
cd "$(dirname "$0")"
|
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"
|
cd "$CDIR"
|
||||||
|
@ -6,7 +6,7 @@ unit GlobalCefApplication;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
uCEFApplication, uCEFWorkScheduler;
|
uCEFApplication, uCEFWorkScheduler, FileUtil;
|
||||||
|
|
||||||
procedure CreateGlobalCEFApp;
|
procedure CreateGlobalCEFApp;
|
||||||
|
|
||||||
@ -33,6 +33,11 @@ begin
|
|||||||
GlobalCEFApp.MultiThreadedMessageLoop := False;
|
GlobalCEFApp.MultiThreadedMessageLoop := False;
|
||||||
GlobalCEFApp.OnScheduleMessagePumpWork := @GlobalCEFApp_OnScheduleMessagePumpWork;
|
GlobalCEFApp.OnScheduleMessagePumpWork := @GlobalCEFApp_OnScheduleMessagePumpWork;
|
||||||
|
|
||||||
|
{$IFnDEF MACOSX}
|
||||||
|
(* Use AppHelper as subprocess, instead of the main exe *)
|
||||||
|
//GlobalCEFApp.BrowserSubprocessPath := 'AppHelper' + GetExeExt;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
{$IFDEF MACOSX}
|
{$IFDEF MACOSX}
|
||||||
(* Enable the below to prevent being asked for permission to access "Chromium Safe Storage"
|
(* Enable the below to prevent being asked for permission to access "Chromium Safe Storage"
|
||||||
If set to true, Cookies will not be encrypted.
|
If set to true, Cookies will not be encrypted.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user