r/voidlinux • u/Smooth-Ad801 • Apr 11 '26
Does anyone actually know how to use seatd + turnstile?
Disclaimer: after irreparably destroying PAM and unable to login, I've installed elogind instead, but for the sake of curiosity:
How does one do it? I've read Void Per-User Services (turnstile), the turnstile README.txt on github... and I'm really at a loss on how to configure it.
Do people generally just use just seatd instead and make a sh script to pass $XDG_RUNTIME_DIR to the DE?
I'm really at a loss on this one, sorry for the newbie question.
6
Upvotes
3
u/urandomread Apr 11 '26
https://docs.voidlinux.org/config/session-management.html#turnstile turnstile+seatd work well, then you choose if use dinit or runit for user services. note that seatd tends to work well with wlroots-based compositors.
2
u/Legitimate-Draw-2235 Apr 11 '26 edited Apr 11 '26
If you install elogind it should automatically set up the xdg runtime dir. You should also configure turnstile to not do the same thing so they don't clash, as per the manual. (I'm not sure what/if you need seatd at all if you have elogind and turnstile. I don't have seatd.)
Then set up turnstile to run per user services (for me this is only the dbus session, pipewire and syncthing). Keep in mind that you may not need to use the per user services for e.g pipewire if you are running a full desktop session like kde plasma as it will already have auto start.
I have a post on here where I asked about Turnstile and then edited my post for people like me who need a walkthrough too. I am not an expert though so follow at your own risk.
2
u/Slight-Brilliant3198 Apr 11 '26 edited Apr 11 '26
Long story short:
Use elogind + turnstile if you use X
Use seatd + turnstile if you use Wayland
turnstile is pretty new (afaik) and not well documented (for sure), and it's not mandatory. Sure it's a nice tool, but at the end of the day you can run your per-user daemons with some regular script called when you start the WM, or even from some Display Managers.
1
u/StrangeAstronomer Apr 11 '26 edited Apr 12 '26
Well I do (use a seatd and a bash script to create XDG_RUNTIME_DIR) but I'm odd, I suppose. I don't use a Display Manager - I just start sway the old fashioned way from a tty just like I did in the 90's*. I also have an on-exit script to clean up anything that might still be running from the session.
* EDIT: well, startx, of course. Not sway.