Wait until display server can accept connections.
Create auth path if not existing before.
Set XAUTHORITY and XCURSOR_THEME in the display server process, too.