Draft: Create Xauthority on Xwayland, differently
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:
- It uses
libxau
for writing the file - It uses
FamilyWild
in addition toFamilyLocal
- 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. - 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.