Working hacks are the best hacks.
I needed to get a web view on a plugin UI but directly loading gtk/qt for it is nasty, would easily break the host and other plugins...
Using a separate process is key, but then that means having to ship a separate binary...?
Well actually no!
With fancy ld-linux setup we can have a shared library also running as an executable.
Then put dlopen/dlsym stuff to load webkit/webengine symbols and we got it all self-contained. 🎉
https://github.com/moddevices/mod-desktop/blob/main/src/plugin/WebViewX11.cpp
Also with hacks for loading Qt WebEngine things if available, that means dynamically loading and calling a C++ API without linking to it.
C++ symbol demangling is quite something... 🙈
Likely to come to DPF at a later point, for now this is just to show a local url without needing to do any fancy IPC.