canonical / lightdm

Display Manager
GNU General Public License v3.0
813 stars 137 forks source link

Move ~/.Xauthority to ${XDG_RUNTIME_DIR} if XDG_RUNTIME_DIR is set #338

Open rozhuk-im opened 6 months ago

rozhuk-im commented 6 months ago

Set user-authority-in-system-dir=false in config. Tested with ConsoleKit2. Not sure that will work with logind without additional code.

ConsoleKit2 will create /var/run/user/$UID dir and promote it as XDG_RUNTIME_DIR in any way.

user-authority-in-system-dir=true mean that lightdm will create /var/run/$USER to keep xauthority. user-authority-in-system-dir=false mean that lightdm will create ~/.Xauthority, after this change lightdm will create /var/run/user/$UID/.Xauthority if XDG_RUNTIME_DIR is set.

Licence: BSD2CLAUSE

github-actions[bot] commented 6 months ago
Hey! rozhuk-im has not signed the Canonical CLA which is required to get this contribution merged on this project. Please head over to https://ubuntu.com/legal/contributors to read more about it.