FS#57046 - [lightdm] systemd-tmpfiles deletes Xauthority files in /run/lightdm
Attached to Project:
Arch Linux
Opened by Jaxton R (xallax) - Thursday, 11 January 2018, 07:32 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 17 May 2019, 15:04 GMT
Opened by Jaxton R (xallax) - Thursday, 11 January 2018, 07:32 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 17 May 2019, 15:04 GMT
|
Details
When the option "user-authority-in-system-dir" is set to
true in /etc/lightdm/lightdm.conf, Xauthority files are
stored under /run/lightdm. However, the tmpfiles
configuration file for lightdm contains this entry:
#Type Path Mode UID GID Age Argument d /run/lightdm 0711 lightdm lightdm 0 An age of 0 means that the directory will be unconditionally removed. Thus, when systemd-tmpfiles-clean.service runs, all Xauthority files are deleted. This prevents any applications from connecting to the X display. Thus, new applications can't be opened, and utilities like xsel and xclip don't work. The age for this path should be changed to "-", like the rest of the entries, so that the Xauthority files are never deleted. Also, this is not completely related to this issue, but the mode of the tmpfiles entry might be wrong. On my machine, with the "user-authority-in-system-dir" option set, /run/lightdm is created with mode 777. It's not a problem, though, because if the age is correctly set to "-", then the directory will never be deleted and recreated by systemd-tmpfiles, and so the mode will remain as 777. Still, maybe the mode in the tmpfiles entry should be changed to 777. Additional info: * lightdm: 1:1.24.0-3 * /etc/lightdm/lightdm.conf * /usr/lib/tmpfiles.d/lightdm.conf |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Friday, 17 May 2019, 15:04 GMT
Reason for closing: Fixed
Additional comments about closing: 1:1.30.0-2
Friday, 17 May 2019, 15:04 GMT
Reason for closing: Fixed
Additional comments about closing: 1:1.30.0-2