x11docker: Setup where user can't see that it is running in container

Hi @mviereck, I would like to make the best setup using x11docker which will have following features:

  • will be isolated (so -h is not good idea)
  • will have good GPU acceleration performance & low latency (so --xpra and everything that is similar like --xpra-xwayland are not fitting my needs)
  • and the most important: It will be invisible that app is running in container (it should look like normal app launched from host. For example --xwayland and --xpra-xwayland are starting compositor so it is not looking like common app. --xpra-xwayland has the best effect but it is slow)

I am trying to find such setup for a quiet long time and best option that may work (maybe I am wrong here) is --xorg. It has GPU performance as good as host and it’s isolated.

The problem is that I need this container to look, behave and launch as normal app launched from host. Using --xorg I am redirected instantly to new TTY and I need to switch TTY using <CTRL><ALT><F1>....<F12> to use host or container.

I would like to see windows from newly created TTY (using --xorg) e.g. tty10 on my host’s display (tty2) next to normal host’s apps. So I need exactly the same effect as --xpra-xwayland gives me but with better GPU performance and lower latency.

So I need to merge two TTYs. Is it even possible? If not what is the alternative to have these 3 features in my setup?

Thanks for help

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 34 (17 by maintainers)

Most upvoted comments

Just for those that were looking for a workaround to launch multiple Xwayland instances, your best bet is to use gnome wayland cause it seems to work just fine. Don’t waste time looking at some other Wayland compositor

Thank you for the feedback! So you got at the same point as me.

It’s really difficult to make some custom design with Xwayland.

I once filed a bug report at swaywm and got the rude answer: “Xwayland is not intended to be run by users”, and the ticket was immediately closed. Maybe there will be some new development in the next years, but currently there seems to be no solution that improves the current --xpra-xwayland setup.

I’ll close for now. If you have a new idea or find something out, I’m glad to hear from you. Thanks for your research!