Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/config/session-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ user-specific runtime files.
Install [elogind](#elogind) or [turnstile](#turnstile) as your session manager
to automatically set up `XDG_RUNTIME_DIR`.

If using [seatd](#seatd), you can consider those two options:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turnstile can also be used with seatd

Copy link
Author

@DonPiotr DonPiotr Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't know that.
On the other hand I think that who chooses seatd, is looking for minimal setup.

Maybe, need to make some longer description of each manager, to help choose the right one for one's needs.


1. You can install `dumb_runtime_dir`. It does the bare minimum.
It will create the directory `/run/user/<UID>` and set `XDG_RUNTIME_DIR` variable on login.

2. You can install `pam_rundir` as a more complete solution.
It will create the directory `/run/user/<UID>` and set `XDG_RUNTIME_DIR` variable on login
and will delete that directory on logout.
To make it work, you need add the following line to
`/etc/pam.d/system-login` in the sessions block: `-session optional pam_rundir.so`

Alternatively, manually set the environment variable through the shell. Make
sure to create a dedicated user directory and set its permissions to `700`. A
good default location is `/run/user/$(id -u)`.