Skip to content

Draft: Create Xauthority on Xwayland, differently

Fabian Vogt requested to merge work/xwlauthority into master

We've been carrying this patch around basically for ever, but it was refused upstream by a previous maintainer.

Now I see that an alternate version of this was implemented, but it's not quite complete. The differences are:

  1. It uses libxau for writing the file
  2. It uses FamilyWild in addition to FamilyLocal
  3. Unlike with other X servers, Xwayland doesn't need entries in the auth file on startup. So there's no need to update it later - just write it once.
  4. This handles XAUTHLOCALHOSTNAME, which is necessary to deal with hostname changes also with Xsm.

Please also see the commit description.

To actually make use of point 4, a patched libxtrans/libxcb is required, so that's arguably a downstream feature. kwin only really has to set that variable though, so it might still be acceptable upstream.

This is a MR to discuss how to proceed here.

Merge request reports