Bug 13878

Summary: xserver-nodm-init: broken XDG_RUNTIME_DIR setup
Product: [Build System, Metadata & Runtime] OE-Core Reporter: tf <tf+bugs.yocto>
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 5.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description tf 2020-04-17 03:40:17 UTC
The 13xdgbasedirs.sh needs to setup XDG_RUNTIME_DIR in a spec compliant way. The comment in the existing script says: 

'Wayland needs XDG_RUNTIME_DIR, so set it to /tmp.  This isn't compliant with the specification (wrong mode, wrong owner) but it's mostly sufficient.'

Unfortunately, this assumption doesn't hold, because some system components will, correctly, ignore the directory if the owner and permissions are not correct, while others will not, and things break. For example, GIO DBus code falls into the former category, while dconf into the latter, and consequently GSettings with a dconf backend don't work.

Either this directory needs to be set up correctly, or the variable should not be set at all.
Comment 2 Ross Burton 2024-10-10 14:03:53 UTC
Or https://github.com/jjk-jacky/pam_rundir.
Comment 3 Ross Burton 2025-03-04 11:13:04 UTC
Patches on the list.
Comment 4 Ross Burton 2025-04-03 12:02:26 UTC
Fixed in 5c98609bf7dfb05af722e30adb49731727df9a94.