Page 1 of 1

CEF Linux console client

PostPosted: Fri Sep 18, 2020 10:31 am
by antondev
Hello. How to use CEF under Ubuntu linux without X11 - only in console. It is really? I have separate processes with browser rendered in memory buffer (simple memory block - memcpy). Do you have any example for this task?

Re: CEF Linux console client

PostPosted: Thu Feb 23, 2023 6:45 am
by sophialuo
Have you found a solution yet?

Re: CEF Linux console client

PostPosted: Thu Feb 23, 2023 10:27 am
by ejorge
Hi,
to achieve this kind of task, you may run CEF in an offscreen mode (i.e: set CefSettings.windowless_rendering_enabled = true from CefInitialize() call).
Then you may need to implement CefRenderHandler.
At this point, you still need a window system.
In our remote browser solution, we made it possible using Ozone platform, adding the following flags:
--off-screen-rendering-enabled --enable-features=UseOzonePlatform and --ozone-platform=headless

After that, you could run a cef-like browser in a docker container or whatever windowless platform.

Hope this helps.