node-x11 icon indicating copy to clipboard operation
node-x11 copied to clipboard

Use X11 in electron ?

Open monok-o opened this issue 7 years ago • 6 comments

Hello, I would want to try to integrate a native application Linux into a window made with electron. I thus turned to your library but I do not too much know how to take myself there.

Thank you in advance and sorry for my bad English.

monok-o avatar Jul 01 '18 08:07 monok-o

yes, should be possible

depends on type of integration you want. It's relatively easy to use it for external integration ( communicate using EWMH, use clipboard / window selections etc ). Probably not so easy to interact with controls inside electron web view ( most of them windowless and handled completely by chrome rendering engine and not X11 )

sidorares avatar Jul 01 '18 11:07 sidorares

have a look at https://github.com/ElessarWebb/positron-bar

sidorares avatar Jul 01 '18 11:07 sidorares

If you want full control over the native application you want to integrate, want a fully seamless look, and want things like no window decorations around the native app and perfect window dragging in unison, you’ll want your Electron app to act as a window manager, and run both apps inside a Xephyr or xf86-video-nested window.

polpo avatar Jul 01 '18 15:07 polpo

exactly, currently I'm trying to do a desktop environment with electron and I want to integrate a custom window manager that can display a linux application in HTML content For the development I use Xhephyr

monok-o avatar Jul 02 '18 16:07 monok-o

Check out the window manager examples in this repo's README as a starting point. That and the Xlib manual should be enough to get started. This is definitely possible with node-x11; at a previous job I've done it (unfortunately not open sourced).

polpo avatar Jul 02 '18 16:07 polpo

ssh-x-forwarding?

nasOS-official avatar Dec 14 '22 13:12 nasOS-official