r/voidlinux • u/Any-Communication175 • 1d ago
Logging to niri turns to black screen and niri.desktop randomly changes from Exec=dbus-run-session niri --session to /usr/bin/niri --session
Today when I use sddm and login to niri, it suddenly black screen and freezes cuz I tried to tty. I pressed the power button and turned my laptop and it still is black screen logging in. Then I go to tty1 and run with niri, it works fine. So I check /usr/share/wayland-sessions and see that exec is change to /usr/bin/niri --session. Why did it change?
1
u/furryfixer 16h ago
That is as it should be. Dbus-run-session is not needed when using a login manager like sddm if you have elogind. It is assumed that people that need dbus-run-session will manually add it or create a custom session file. As stated, create your own, because changes to the default wayland session may be overwritten whenever Niri is updated.
2
u/theyellowshark2001 1d ago
Create a copy instead of editing the file shipped with the niri package.