Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use X11 in electron ? #173

Open
monok-o opened this issue Jul 1, 2018 · 6 comments
Open

Use X11 in electron ? #173

monok-o opened this issue Jul 1, 2018 · 6 comments

Comments

@monok-o
Copy link

monok-o commented Jul 1, 2018

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.

@sidorares
Copy link
Owner

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
Copy link
Owner

@polpo
Copy link
Collaborator

polpo commented Jul 1, 2018

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.

@monok-o
Copy link
Author

monok-o commented Jul 2, 2018

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

@polpo
Copy link
Collaborator

polpo commented Jul 2, 2018

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).

@nasOS-official
Copy link

ssh-x-forwarding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants