After opening cygwin with X, all works great and as expected, but after a few hours I can't open any other program that requires X display:
from cygwin
$ gnome-system-monitor
** (gnome-system-monitor:21837): WARNING **: Could not open X display
(gnome-system-monitor:21837): Gtk-WARNING **: cannot open display: localhost:10.0
from spawned gnome-terminal
$ gnome-terminal
** (gnome-terminal:20923): WARNING **: Could not open X display
Failed to parse arguments: Cannot open display:
other than that all works fine
ssh -X ${server}@${local-ip} -p${port}
gui-command
(should work)the remote PC is running ubuntu with openssh
Restart cygwin X server
I've looked into the official documentation and found this, but it is of no use as I don't seem to have any of that software installed, and the description of the problems are very broad.
What other workarounds are there? Are there others in the same situation? Did I do something wrong? Are there better ways to use remote X11 programs on windows?
Use -Y instead of -X. I had the same problem, this solved it.