I have 2 linux machines up and running. If I connect from one to the other over
ssh -X 192.168.1.6
I am able to start xterm
or firefox
and the window is displayed as expected at the machine I am working on.
But if I start gnome-terminal
or meld
, the windows of these programs are displayed on the remote machine.
There seems to be no general authentication problem, as I got no error message. I already found that thread: How can I launch gnome-terminal remotely on my headless server? (fails to launch over X11 forwarding)
and from there the script:
#! /bin/bash
ID=foo.bar$RANDOM
GDK_BACKEND=x11 /usr/libexec/gnome-terminal-server --app-id "$ID" &
sleep .4 # yuck
gnome-terminal --app-id "$ID"
wait
works for gnome-terminal
. But for meld
is no option --app-id
.
I there a way to get the windows displayed on the correct machine?
BTW: linux version is 5.15.12-200.fc35.x86_64 fedora on both machines
How to get it work without any additional scripting and environment hacks:
Simply disable wayland everywhere! On fedora gdm login screen provides a little nearly hidden menu on login screen after you have selected the user to login. There is a little gear wheel, in current gnome version it is down right, and there select "gnome under X11" to get rid of wayland problems. After this also touch screen works, font rendering is improved a lot and mouse pointer calibration is working perfect. None of them is working with wayland... only as a side note! Attention: You have to disable wayland always and everywhere, on host and on remote side!