sway 1.6.1-r0 doesn't run without installing additional packages
After upgrading sway from 1.6-r1 to 1.6.1-r0 it no longer starts. Running sway -dV
gives:
00:00:00.000 [INFO] [sway/main.c:347] Sway version 1.6.1-7571507451 (Jun 26 2021, branch 'master')
00:00:00.000 [INFO] [sway/main.c:348] wlroots version 0.14.0
00:00:00.000 [INFO] [sway/main.c:155] Linux machine 5.10.48-0-lts #1-Alpine SMP Thu, 08 Jul 2021 07:35:48 +0000 x86_64 Linux
00:00:00.000 [INFO] [sway/main.c:171] Contents of /etc/os-release:
00:00:00.000 [INFO] [sway/main.c:155] NAME="Alpine Linux"
00:00:00.000 [INFO] [sway/main.c:155] ID=alpine
00:00:00.000 [INFO] [sway/main.c:155] VERSION_ID=3.14.0
00:00:00.000 [INFO] [sway/main.c:155] PRETTY_NAME="Alpine Linux v3.14"
00:00:00.000 [INFO] [sway/main.c:155] HOME_URL="https://alpinelinux.org/"
00:00:00.000 [INFO] [sway/main.c:155] BUG_REPORT_URL="https://bugs.alpinelinux.org/"
00:00:00.000 [INFO] [sway/main.c:143] LD_LIBRARY_PATH=
00:00:00.000 [INFO] [sway/main.c:143] LD_PRELOAD=
00:00:00.000 [INFO] [sway/main.c:143] PATH=/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin
00:00:00.000 [INFO] [sway/main.c:143] SWAYSOCK=
00:00:00.000 [DEBUG] [sway/server.c:47] Preparing Wayland server initialization
00:00:00.001 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.001 [INFO] [wlr] [libseat] [libseat/libseat.c:70] Backend 'seatd' failed to open seat, skipping
00:00:00.001 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:594] Could not get primary session for user: No data available
00:00:00.001 [INFO] [wlr] [libseat] [libseat/libseat.c:70] Backend 'logind' failed to open seat, skipping
00:00:00.001 [ERROR] [wlr] [libseat] [libseat/libseat.c:73] No backend was able to open a seat
00:00:00.001 [ERROR] [wlr] [backend/session/session.c:84] Unable to create seat: Function not implemented
00:00:00.001 [ERROR] [wlr] [backend/session/session.c:218] Failed to load session backend
00:00:00.001 [ERROR] [wlr] [backend/backend.c:353] Failed to start a DRM session
00:00:00.001 [ERROR] [sway/server.c:53] Unable to create backend
Installing seatd
, seatd-openrc
and launching it before starting sway fixes the problem.
My guess would be that libseat does not detect logind backend, even though libelogind is installed on my system (via so:libelogind.so.0 as sway dependency). Maybe someone more familiar with sway internals could comment on that.