Bug 13878 - xserver-nodm-init: broken XDG_RUNTIME_DIR setup
Summary: xserver-nodm-init: broken XDG_RUNTIME_DIR setup
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.2 M3
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-04-17 03:40 UTC by tf
Modified: 2025-04-03 12:02 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.