I'm reposting Gnome Session Doesn't Start on Remote X Server, here, because I believe it's a
Gnome question, not just an Ubuntu one.
I have an Ubuntu host, which I reach via
ssh -Y. The client is my macOS laptop, running XQuartz. I can do
xclock or other
X apps from the host and see them on my laptop. What I cannot run is gnome-session, which, as far as I understand, should be the whole thing that comes up when I login to the machine from the local console. DISPLAY is correctly set, but seems to be ignored.
--display="$DISPLAY" to gnome-session yields:
** (gnome-session-binary:5943): WARNING **: Unknown option --display=localhost:10.0
Indeed, my manpage for gnome-session doesn't mention --display, while manpages around Internet do. So, I guess, it was removed at some point, do I still have a way to do it?
I've also discovered that other gnome applications (e.g., gnome-software) have a
--display option, but they ignore it and the application runs on the console desktop, rather than on my laptop.