web-view icon indicating copy to clipboard operation
web-view copied to clipboard

Headless

Open nebnes opened this issue 3 years ago • 1 comments

Is it possible to use this crate in headless mode, for example in a docker container?

nebnes avatar Jun 24 '21 13:06 nebnes

On GNU/Linux (which, by extension, includes Docker containers, as they are based on Linux), web-view uses GTK under the hood, so it is possible to leverage the usual methods to run a GTK application in headless mode. GTK usually targets a X11 or Wayland desktop environment, which can be provided in headless environments with Xvfb or Xdummy. This random StackExchange question has more concrete instructions for doing that.

AlexTMjugador avatar Jan 02 '22 15:01 AlexTMjugador