r/voidlinux • u/MixtureInevitable725 • Apr 05 '26
Whats the appropriate way to start user session services?
I got into Linux a few months ago, did a lot of distrohopping, experimenting and research.
After ditching windows and daily driving first mint later Ubuntu for a few months i decided that i wanted 100% system control and customization to my hearts desire. After a lot of research i picked void and used it together with gnome for about a month while customizing Niri Window Compositor alongside.
When i finally removed gnome it turned out it was basically holding my system together.
My system services like network manager, dbus, seatd … are working again, however i have problems with user session services like pipewire, wireplumber, xdg-desktop-portal, … . At first i started them through the Niri config with spawn-at-startup. However this did not work reliably as audio would sometimes work and randomly not work again after boot.
Currently I am trying to set it up through turnstile but the void documentation hasn’t been very helpful.
What is the "best" way to do it?
2
u/lukeflo-void Apr 05 '26
Do you use elogind alongside turnstile? Gnome should hold nothing together. And starting things like pipewire from your niri config is totally fine. Since you report portal problems could be something with dbus. How do you start niri? From TTY or with a login manager?
6
u/ClassAbbyAmplifier Apr 05 '26
turnstile, though it doesn't currently work well for things that are graphical
https://docs.voidlinux.org/config/services/user-services.html#turnstile
2
u/Bawafafa Apr 05 '26
As everyone else has said, the tool you're looking for is turnstile!
1
u/6950X_Titan_X_Pascal Apr 05 '26
xfce4 lightdm
1
u/Legitimate-Draw-2235 Apr 05 '26
Hi I had the same question about a month or so ago and have edited my question to just walk you through everything I did verbatim. Obviously ymmv.
https://www.reddit.com/r/voidlinux/comments/1r6u82l/would_turnstile_be_a_more_elegant_solution_rather/
Also, xdg-session-portal is just a config file I believe.
1
u/Blank-Inspection13 Apr 07 '26
As already mentioned by many here, use turnstile with guides from void official documentation to create user service , example already given to run dbus-daemon --session & u/ClassAbbyAmplifier have dotfiles for example to configure e.g pipewire service.
Another option you can use dinit as user service , to supervise and manage user service ( dbus session , pipewire etc. ) via turnstile which provide 2 backends runit & dinit .
for me i've created wrapper script to export env-vars before executing niri --session - this --session mandatory as niri have niri-portals.conf so your session inherit some default environtment brought by niri , you can read their docs for Niri guide.
0
u/[deleted] Apr 05 '26
[deleted] — view deleted comment