feature/phosh requires a logind implementation
NOTE: This issue applies to the as of yet unfinished packaging of Phosh, the mobile shell to be used by the Librem 5 phone.
The rootston binary from wlroots
right now fails to run without root rights.
[rootston/config.c:370] Configured output Virtual-1 with mode 720x1440@0.000000
[rootston/config.c:370] Configured output X11-1 with mode 768x1024@0.000000
[backend/session/direct-ipc.c:47] Do not have root privileges; cannot become DRM master
[backend/session/session.c:76] Failed to load session backend
[backend/backend.c:250] Failed to start a DRM session
[rootston/main.c:26] could not start backend
After talking to a Phosh developer, I learned that to run without root rights, rootston
requires a logind implementation which we do not have. I've tried packaging elogind but besides it failing because of a Musl incompability, I much rather have wlroots
support ConsoleKit2 anyway.
I've created an issue for ConsoleKit2 support upstream. It seems we can also set the suid bit on rootston
, which will do for now but we probably want to get rid of this as it's discouraged by upstream Alpine Linux.
Note that this will also prevent Sway from running without root should we eventually want to package it.