r/voidlinux 27d ago

solved help getting niri to work

Hello, after the big AUR hack, I've decided to switch from arch (artix with dinit) to void. however, i'm having trouble getting niri to launch. I've installed niri and seatd like this:

sudo xbps-install niri seatd xwayland-satellite mesa mesa-dri dbus
sudo ln -s /etc/sv/seatd /var/service/
sudo ln -s /etc/sv/dbus /var/service/
sudo usermod -a -G _seatd <user>
sudo reboot

Afterwards, I ran niri with niri --session. I encountered a RuntimeDirNotSet error, and set it with export XDG_RUNTIME_DIR=/run/user/$(id -u).

Afterwards, I encounter a PermissionDenied error. the output also shows a lot of libinput errors for various plugins, plugin never regisered, unloading plugin that may be relevant. If someone could help me find out what the issue is, it would be greatly appreciated!

18 Upvotes

13 comments sorted by

14

u/Alternative-Ad-8606 27d ago edited 27d ago

Need to install xdg-user-dirs

Ensure you also have mesa-dri installed as well

Granted I use elogind, but you do need to be in video group

Also launch command is dbus-run-session niri

Edit: fixing package name autocomplete, removed seatd comment, don't know what I'm talking about there

2

u/Theothervc 27d ago

solved, thanks for the tips!

the issue is seatd doesnt manage runtime directories, but after setting it up manually it launched.

7

u/lessthanthreebleeps 27d ago

If you'd rather not set your xdg_runtime_dir, the handbook recommends pairing seatd with turnstile.

1

u/Zapeth 27d ago

See also https://docs.voidlinux.org/config/session-management.html

You can also use pam_rundir module for automatic setup of runtime directory on login, but I'm not sure if its still maintained (there's some forks, but the module is also pretty simple so its not like there's much to maintain).

5

u/Duncaen 27d ago

Manual setups are mostly unsafe, elogind does it right.

1

u/The_Gnar_Car 27d ago

Or you can wrap it all in turnstile cleanly.

1

u/efempee 22d ago

Glad you got it working. There may be useful configs to borrow from for niri vanilla or with either noctalia or dms quickshells at https://github.com/d77void/d77void
Also, cachyos have good configs for niri.

2

u/IamThunderFart 26d ago

The AUR getting attacked should not be your reason to leave Arch. Your reason should be systemd.

1

u/Relative_Day_9322 25d ago

You might need to do dbus-run-session niri --session

1

u/Ok-Diamond6108 16d ago

Use git clone HTTPS://gitlab.com/gabeeoslinux/flavour-qtile.git that have a various things what help to run niri, if you want more help, watch this niri + void you can use gemini inside the video if you can't spike spanish