Solution: 1. Get file from sddm-greeter and startplasma-x11 (aka KDE) processes as well 2. Get users home dir from system instead of hard coded pattern /home/<user> 3. Prefer XAUTHORITY environment variable over Xorg -auth if available
Solution: 1. Get file from sddm-greeter and startplasma-x11 (aka KDE) processes as well 2. Get users home dir from system instead of hard coded pattern /home/<user> 3. Prefer XAUTHORITY environment variable over Xorg -auth if available