Comment 1 for bug 1898858

Revision history for this message
Simon Tatham (sgtatham) wrote :

Now I think about it harder, I suppose I should mention a few more details.

On the test VM I spun up for the reproducer, I was doing all of this by logging in on a text virtual console. On the real machine where I had this problem originally, I'm doing remote working by SSHing in, running vncserver to start up the X session, and then connecting a VNC client to it.

So, in both cases, the user-level systemd process is already running *before* I set up the new X display. I wouldn't be surprised if that was a key part of the problem: if you logged in on a display other than :0 via a normal display manager, it might well have set DISPLAY before even starting "systemd --user", and then everything might work. (But I haven't tried it.)

Also, when I say "vncserver", that's the one from the "vnc4server" package. (I think that is probably not critical to the behaviour, but just in case.)