From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICC4L22St2LxzQAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 00:55:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cKqDL22St2IkvQAAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 00:55:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4407F374B1 for ; Sun, 26 Jun 2022 00:55:40 +0200 (CEST) Received: from localhost ([::1]:50374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5Egl-0004ti-2q for larch@yhetil.org; Sat, 25 Jun 2022 18:55:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Egg-0004tX-1M for help-guix@gnu.org; Sat, 25 Jun 2022 18:55:34 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:44804 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o5Egc-0002x4-O1 for help-guix@gnu.org; Sat, 25 Jun 2022 18:55:33 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 8e3c83e9; Sat, 25 Jun 2022 22:46:37 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id e536799f; Sat, 25 Jun 2022 22:46:36 +0000 (UTC) Date: Sun, 26 Jun 2022 00:54:57 +0200 From: Denis 'GNUtoo' Carikli To: "(" Cc: "GUIX Help" Subject: Re: Launching sway from sddm Message-ID: <20220626005457.2893d519@primary_laptop> In-Reply-To: References: <20220624182126.2e1deb19@primarylaptop.localdomain> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/uI8AsTzwmS0S.n72qS3/RpB"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656197740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=I+BlEDeR6php37JH35QgrFIl/OtFOo2fPl4gQrqIlvg=; b=A0Tr2i/tBvGgI2IqX7v1DKWHwMegqa92E1ssqrYjsc/7ti2Ke4BjlvvFbMFs7YiLlQ4JHF ZrmkZFabjk5ddinkumP3O8O7KbcFy+ZqRoSSoxCEhsfk/JL/SWVSv9AAbLlwz148k7p4df DwFiKqGIvSBD6ckD1tx8gxp0u+3CvXjPkqkg11ISazcQsODIwEg2SRhUsan03YJ8SqD6pv daRI5qCHYv3F2yRhCTwzOiyqugGoWD+wO9dx/2aqDmTAMDkGfac6bhoshZRQ6ZENMZpQUs wff8QAK/r1AQr/VHD+nlVq3SiYvqYN5kCRH87k1YGHtDNMZx3fK9aolKDdkJbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656197740; a=rsa-sha256; cv=none; b=PnBa1HVRCvz4YZX7/Rn9xcpOU7IyUbtx7F3FS2U+I0/alpA7slRwCubSIp0ndpIGp6T18L pL3ssyaJwntph5dW2JKSiic76Wb8XN43dGTaV2TmbjnoFfqFyIW2pdH1buAABB7NPTdTg5 8mPToaRxdJIMuJuCKMAn5GfO3rsz555iBUls3FxdK/RfCgYTVdtxc1/95PjU/biUjRCT5R KgGQTydX68ylBtsy/RMsvDrXGa+bgxXuxWeR0Q0OQM4JnWc4tx33MASmd2TKLxb2tGYnND IhlFKP+fUfKMxcIGFfYE8NRt+LArPWQnpy3Npt8gc1FbRith0YDUpjzM5cSsoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4407F374B1 X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pknd3jTQyXtw --Sig_/uI8AsTzwmS0S.n72qS3/RpB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 24 Jun 2022 18:03:03 +0100 "(" wrote: > On Fri Jun 24, 2022 at 5:21 PM BST, Denis 'GNUtoo' Carikli wrote: > > - Where is XDG_RUNTIME_DIR supposed to be set? [...] > (1) SDDM does not support seatd, only elogind: I've tried to workaround XDG_RUNTIME_DIR with a hack: > --- a/gnu/system.scm > +++ b/gnu/system.scm > @@ -1173,6 +1173,8 @@ (define (operating-system-environment-variables > os) ;; when /etc/machine-id is missing. Make sure these warnings are > non-fatal. ("DBUS_FATAL_WARNINGS" . "0") > =20 > + ("XDG_RUNTIME_DIR" . "/run/user/1000") > + > ;; XXX: Normally we wouldn't need to do this, but our glibc@2.23 > package ;; used to look things up in 'PREFIX/lib/locale' instead of > ;; '/run/current-system/locale' as was intended. Keep this hack > around so And that now gives the following .local/share/sddm/wayland-session.log: > 00:00:00.118 [ERROR] [wlr] [libseat] [libseat/backend/logind.c:317] Could= not activate session: Interactive authentication required. > 00:00:00.118 [ERROR] [wlr] [libseat] [libseat/libseat.c:79] No backend wa= s able to open a seat > 00:00:00.118 [ERROR] [wlr] [backend/session/session.c:84] Unable to creat= e seat: Function not implemented > 00:00:00.118 [ERROR] [wlr] [backend/session/session.c:218] Failed to load= session backend > 00:00:00.118 [ERROR] [wlr] [backend/backend.c:353] Failed to start a DRM = session > 00:00:00.118 [ERROR] [sway/server.c:53] Unable to create backend And I also retried with sddm+seatd+manual-seatd instead of sddm+elogind+manual-seatd and rebooted after that, and it didn't work so I might have tested that wrong. The later still work though. The first error is from libseat which is used by wlroots which is used by sway: > static int session_activate(struct backend_logind *session) { > sd_bus_message *msg =3D NULL; > sd_bus_error error =3D SD_BUS_ERROR_NULL; >=20 > // Note: the Activate call might not make the session active > // immediately > int ret =3D sd_bus_call_method(session->bus, > "org.freedesktop.login1", > session->path, > "org.freedesktop.login1.Session", > "Activate", > &error, &msg, ""); > if (ret < 0) {=20 > log_errorf("Could not activate session: %s", > error.message); > } >=20 > sd_bus_error_free(&error); > sd_bus_message_unref(msg); > return ret; > } For this one I could look if we have the right methods on the session dbus. The second one is from libseat_open: > struct libseat *libseat_open_seat([...]) { > [...] >=20 > char *backend_type =3D getenv("LIBSEAT_BACKEND"); It first tries to get the backend from the environment. And then if no LIBSEAT_BACKEND is set, it goes try all the backends and returns the first valid one or prints the error we have: > for (const struct named_backend *iter =3D impls;=20 > iter->backend !=3D NULL;> iter++) { > backend =3D iter->backend->open_seat(listener, data); > if (backend !=3D NULL) { > log_infof("Seat opened with backend '%s'", > iter->name); > return backend; > } > [...] > log_error("No backend was able to open a seat"); > [...] > return NULL; Denis. --Sig_/uI8AsTzwmS0S.n72qS3/RpB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmK3kkEACgkQX138wUF3 4mNvyQ//YqU1hzp2z05c3XOKX5Uq9rB1bZvV5QVZUij5aJ/JeN9DHaQl6s4OEUzr /9HvJcMh7HyRQK6gbKmiDrFXzd5nLH0T4z56kk9gZJTcMfVfFZhCAonvSvC07P1k FSbIWiTxRjb14ps2tzULTNPevAeyTB2ikjHFO7t7hwvU0XlZc+aVwhKx/ld+ta8K oYZn19nSMRt3uK1CW22pjBF3e39snK9WPTTlgv3mjVlb7PSQOqtC/+HSapDbvs2g QSfUuNNLap/usN5AXQ6aMlXwGYG5dcFKRK4AWfsFFeB404w7l/dvEQeaMJ/kv5jQ Vs6e6OvMcKQtRAaK8ZPHkNuI5rFhyA3ESdmQ60Gl0QeGnrfaGhPZc52onQuNszZI JzspQdZeKwoBdVtITNrwjdpuCAQjnLVEPFV+Ys8oj02ZqVjf+DTwW3yYIMgLqyiq hEo4HdywOjwB5fSql+CajhrsGMwWPnLF66VSXduQlSCYzk69hi11Y0ckbC49EVo3 gRnq8QXReooQvi7AkTBbGlCcKEHwklHpenNBpYIuw4fy87GYqEkzCFNG5hZHWLrr HfBAtWM0lYP9+CLhaLOK0yEojL7rYAi19bHj5+sojU/DamX/I3eRhBX3kAa3L9Bl fGx4KitOmKcz7kHVI2VgRpu52xwQDu7h6cZJsu7a8A1VydeWXfg= =TOan -----END PGP SIGNATURE----- --Sig_/uI8AsTzwmS0S.n72qS3/RpB--