You are not logged in.

#1 2019-01-04 11:06:18

OlivK
Member
Registered: 2017-10-15
Posts: 22

Sway-git fail to get session-id

I used sway-wlroot-git. But this aur has been removed and switched to sway-git.

Since then I cannot run sway. In the terminal I run `sway` and get the following error:

[backend/session/logind.c:494] Failed to get session id: No such process
[backend/session/direct-ipc.c:35] Do not have CAP_SYS_ADMIN; cannot become DRM master
[backedn/session/session.c:91] Failed to load session backend
[sway/sway/server.c: 40] Unable to create backend

The capability error can be removed by setting /usr/bin/sway file capabilities. But I could no fix the first error, which happens in a wlroots source file:

` sd_pid_get_session(getpid(), &session->id);`. It returns error number ESRCH "No such process" => which means according to man sd_pid_get_session that the specified PID does not refer to a running process. This looks really strange because getpid always return the PID of the running process that calls it...

So I don't know how to make sway run. On my system I have libsystemd 239.370-1.

I tried to launch weston and I get also an error related to systemd:
`logind: not running in a systemd session`
`logind: cannot setup systemd-logind helper`

Nevertheless loginctl gives me a session number and `systemctl status` showes a user slice.

Last edited by OlivK (2019-01-04 11:47:02)

Offline

#2 2019-01-04 11:55:56

loqs
Member
Registered: 2014-03-06
Posts: 18,032

Re: Sway-git fail to get session-id

Offline

#3 2019-01-04 12:18:41

OlivK
Member
Registered: 2017-10-15
Posts: 22

Re: Sway-git fail to get session-id

On my system all processes have a /proc/self/cgroup file.

Offline

Board footer

Powered by FluxBB