Talk:Wayland: Difference between revisions
(XDG_RUNTIME_DIR path - optimal choices/standardization across packages - for use in Creating and exporting XDG_RUNTIME_DIR manually section) |
(No difference)
|
Latest revision as of 06:01, 4 December 2025
XDG_RUNTIME_DIR path
Some background on how /run/user/$(id -u) or similar might be used over /tmp/$(id -u)-runtime-dir or the like; note that it needs to satisfy its XDG specification; and that /tmp/$(id -u)-runtime-dir would currently skew away from the usage made by other facilities in Alpine Linux:-
- Archwiki - pam_systemd using /run/user/$UID -
- '~kennylevinsen/seatd" offers /run/user/`id -u` (See also the "~kennylevinsen/seatd-docs" homepage).
- As noted in XDG_RUNTIME_DIR section:-
- elogind uses /run/user/$(id -u);
- mkrundir employs /run/user-$UID and should be mounted as
tmpfsby [1]; - pam_rundir below similarly engages /run/user, [as per upstream}}
- Void Linux docs - "session-management.md: Proper handling of XDG_RUNTIME_DIR #635"
- Arch forum - "[SOLVED] Best place to put XDG environment variables"
- Note that Gentoo's wiki on XDG/Base Directories currently points out required specifications without elaborating about specific paths; in this wiki, a specific path, /tmp/$(id -u)-runtime-dir had been given until today in the section, now modified to keep in line with other facilities.
In the light of this, please feel free to contribute: please point out and hopefully update the wiki to indicate when and why /tmp/$(id -u)-runtime-dir or similar would be preferred. John3-16 (talk) 06:01, 4 December 2025 (UTC)