2

I am ssh-ing (with ForwardX11 on) from an Ubuntu laptop to a remote OpenSUSE desktop. Both are running X11.

Some applications like xterm, xclock etc. open on the calling computer's display (Ubuntu), which is the behaviour I want. But others, like eog, nautilus, etc. open on the OpenSUSE desktop's X11 display - even though the DISPLAY variable is set to the local (Ubuntu) X11 display. How can I change this behaviour?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

1 Answers1

3

Just found the solution. Unset XDG_RUNTIME_DIR then it works.

  • Thanks, this is also relevant for using several tty with different X sessions on the same machine. My problem was that calling say gnome-terminal in a tty, just opened a new terminal in my older Xsession (living in another tty). – Gauthier Jul 04 '22 at 15:51