Summary: | gui-wm/sway[elogind]: sd_uid_get_sessions returns zero | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Elincm <karollyfer17> |
Component: | Current packages | Assignee: | Aaron Bauman (RETIRED) <bman> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | asturm, karollyfer17, kensington, prometheanfire, speedjack95 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Sway errors
emerge --info |
Description
Elincm
2020-02-15 15:39:05 UTC
Created attachment 613946 [details]
Sway errors
Created attachment 613948 [details]
emerge --info
Shouldn't you also add `dbus-launch --exit-with-session` to your command? I am unconvinced elogind is the first address to search for the issue. dbus-launch --exit-with-session sway Doesn't help. Same error. I didn't know where to address that issue. Should this print 0? /* file.c */ #include <unistd.h> #include <sys/types.h> #include <elogind/sd-login.h> #include <studio.h> int main(void) { char **user_sessions = NULL; int user_session_count = sd_uid_get_sessions(getuid(), 1, &user_sessions); printf("%d\n", user_session_count); return 0; } gcc -L/lib64/elogind -Wl,-rpath=/lib64/elogind -lelogind-shared-241.4 file.c -o file I will paste here "chain" of functions executed maybe it will be helpful. ("in <file>" means "implementation is in <file>") main (sway) | in sway/main.c V server_privileged_prepare (sway) | in sway/server.c V wlr_backend_autocreate (wlroots) | in backend/backend.c V wlr_session_create (wlroots) | in backend/sessions/sessions.c V session_logind.create (wlroots) | in backend/session/logind.c V logind_session_create (wlroots) | in backend/session/logind.c V get_display_session (wlroots) | in backend/session/logind.c V get_greeter_session (wlroots) | in backend/session/logind.c V sd_uid_get_sessions (elogind) Somehow in my package.use was -elogind on sys-auth/pambase. I added elogind in USE in make.conf. Resolved. |