The desktop uses the default X mechanism for authorizing remote applications (X clients) to access a local display. The easiest way to configure this is to provide a networked home directory for each user. This ensures that the following requirements are met:
The user must have read and write permission to the file HomeDirectory/.Xauthority.
The .Xauthority file on an application server must contain the “magic cookie” for the display on which the application will run.
For more information, see the X(1) or xauth(1) man pages.