Hi,
We are trying to embed a CEF browser with CEF4Delphi in FMXLinux applications and we are having problems in the Chromium initialization.
Chromium requires that there only be a single thread during initialization and FMXLinux is initializing GTK even before the app executes the first code line in the DPR file.
We see several threads after the FmuxInit call in TPlatformLinux.Create, which is called inside RegisterCorePlatformServices.
The problem is that RegisterCorePlatformServices is called inside the “initialization” section of FMX.Platform and we can’t modify or delay any of this.
We also tried calling g_application_quit, gtk_main_quit and FmuxTerminate before the CEF initialization without success.
We would like to know if there’s any way to delay the GTK initialization with the current FMXLinux version or if you could add this possibility in the next FMXLinux release.
Thank you for your help!
Salvador Diaz Fau,
Maintainer of the CEF4Delphi project.
We found a way to initialize CEF in another "initialization" section of another unit and using a different executable for the CEF processes.
However, this is just a workaround that forces us to always use a different executable for the CEF processes.
It would be great if you could suggest another solution.