[qubes-users] startx over ssh leads to many new Qubes windows

Hello! I am trying to start X on a different machine (FreeBSD if it matters) over SSH in a Qube VM (nothing fancy, just a Qube based on Fedora 32).

This works, but every window I open ends up being a new window in Qubes. It’s worse than that because UI components also end up as new windows in Qubes. For example, the Xfce panel ends up as a new window too.

What I’d like to happen is for everything to open in a single window, so there’s just a single Qube window and anything that happens in that environment stays in that window. Is that doable?

Sorry I couldn’t find anything in the documentation for this.

Here’s exactly what I do:

$ ssh -X me@host.

$ /usr/local/bin/startxfce4 --with-ck-launch

And then chaos ensues.

Appreciate any help here, thanks!

Here's exactly what I do:
$ ssh -X me@host.

The `-X` here forwards all X11 windows on the remote host back to your
local machine. Is this your goal?

$ /usr/local/bin/startxfce4 --with-ck-launch

This will start a bunch of X11 windows, which are then forwarded back to

It's doing exactly what you are asking to do. The client is forwarding
everything to the Xserver you are sitting at.

What you *want* to do is to see the remote desktop in a window on the
Qubes desktop.
For that you should use a remote desktop tool like vnc, and tunnel it
over ssh. (Search for vnc over ssh and you will find many online