Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Mention Polkit dependency in README.md #138

Closed
lastCent opened this issue Aug 3, 2021 · 7 comments
Closed

Mention Polkit dependency in README.md #138

lastCent opened this issue Aug 3, 2021 · 7 comments
Labels
A: enhancement New feature or request

Comments

@lastCent
Copy link

lastCent commented Aug 3, 2021

Related to: #113

When starting dwl on a freshly installed machine without Polkit the following error is returned and dwl won't start:

00:00:00.000 [ERROR] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.002 [ERROR] [libseat] [libseat/backend/logind.c:267] Could not activate session: Permission denied
00:00:00.002 [ERROR] [libseat] [libseat/libseat.c:73] No backend was able to open a seat
00:00:00.002 [ERROR] [backend/session/session.c:84] Unable to create seat: Function not implemented
00:00:00.002 [ERROR] [backend/session/session.c:218] Failed to load session backend
00:00:00.002 [ERROR] [backend/backend.c:353] Failed to start a DRM session
couldn't create backend

To me it wasn't immediately clear that the absence of Polkit was the problem behind this.
I suggest adding it as a third dependency in the README.md file, or mentioning an alternative to polkit, if one exists.

@lastCent lastCent added the A: enhancement New feature or request label Aug 3, 2021
@harrisonrobin
Copy link

you need seatd running

@PalanixYT
Copy link
Contributor

polkit is not a dependency of dwl

@raphaelr
Copy link
Contributor

raphaelr commented Nov 2, 2021

wlroots depends on libseat, and libseat requires either systemd-logind, elogind, or seatd to be running. Alternatively, add your user to the video/input groups so libseat can open the hardware devices directly (but I do not recommend that because it gives every process more privileges, not just dwl).

The README already says:

Depending on your distro's setup, you may need to add your user to the video and input groups before you can run dwl on a VT.

@lastCent
Copy link
Author

lastCent commented Nov 2, 2021

Thanks guys. I guess I must have had an issue with systemd-logind then.
I tried adding the user to video/input groups at the time, but it seemed to have no effect.

Currently I depend on the machine in question, so I'm not able to reproduce the problem at this time. Feel free to close the issue.

@raphaelr
Copy link
Contributor

raphaelr commented Nov 5, 2021

addendum: if using logind, then polkit has to be installed as well, otherwise it won't let dwl access the hardware. just tried it out on arch

@devgioele
Copy link

I know this is old and closed, but confirm that to run dwl as non-root requires polkit.
It is not a dependency of dwl, but it should be mentioned in the installation instructions nonetheless.

@sevz17
Copy link
Collaborator

sevz17 commented Oct 29, 2022

I know this is old and closed, but confirm that to run dwl as non-root requires polkit. It is not a dependency of dwl, but it should be mentioned in the installation instructions nonetheless.

polkit is required when using systemd-logind|elogind; otherwise you need add yourself to the seat group and start the seatd daemon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants