Skip to content

Commit 708b285

Browse files
st3r4gericonr
authored andcommitted
wayland: move XDG_RUNTIME_DIR info to session-management
1 parent 0b341bb commit 708b285

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

src/config/graphical-session/wayland.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,9 @@ compositors, and is installed as a dependency for most of them. Its package is
8080

8181
## Configuration
8282

83-
The Wayland library uses the `XDG_RUNTIME_DIR` environment variable to determine
84-
the directory for the Wayland socket.
85-
86-
Install `elogind` as your [session manager](../session-management.md) to
87-
automatically setup `XDG_RUNTIME_DIR`.
88-
89-
Alternatively, manually set the environment variable through the shell. Make
90-
sure to create a dedicated user directory and set its permissions to `700`. A
91-
good default location is `/run/user/$(id -u)`.
83+
The Wayland library requires the
84+
[`XDG_RUNTIME_DIR`](../session-management.html#xdg_runtime_dir) environment
85+
variable to determine the directory for the Wayland socket.
9286

9387
It is also possible that some applications use the `XDG_SESSION_TYPE`
9488
environment variable in some way, which requires that you set it to `wayland`.

src/config/session-management.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ non-root users to be able to access the seatd session, add them to the `_seatd`
5252
group.
5353

5454
Note that, unlike elogind, seatd doesn't do anything besides managing seats.
55+
56+
## XDG_RUNTIME_DIR
57+
58+
`XDG_RUNTIME_DIR` is an environment variable defined by the [XDG Base Directory
59+
Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).
60+
Its value sets the path to the base directory where programs should store
61+
user-specific runtime files.
62+
63+
Install [elogind](#elogind) as your session manager to automatically set up
64+
`XDG_RUNTIME_DIR`.
65+
66+
Alternatively, manually set the environment variable through the shell. Make
67+
sure to create a dedicated user directory and set its permissions to `700`. A
68+
good default location is `/run/user/$(id -u)`.

0 commit comments

Comments
 (0)