From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0ARcEE4UeWeUFAAAqHPOHw:P1 (envelope-from ) for ; Sat, 04 Jan 2025 10:58:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0ARcEE4UeWeUFAAAqHPOHw (envelope-from ) for ; Sat, 04 Jan 2025 11:58:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=P8mfKyQs; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b="M1+Zra/C"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735988302; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=irUkQx8AH/aJHgtG24blNzStJ0PeVdNa/pqmovqSG5E=; b=n7uHHYCzgqZ7rDw+NHe2guPob6/VbGk1/a0o9xuUcZ0imhBKBf5F/sXKblYNG7Xd808Qxc EUzgaO273L3KG5eFChMX7esIth1sYtaDPzlPQd/ofcXlL92f7qVgyNExr3HK/xgcr/le7i 16tbhlwupKToNJqdGJguCkrLj6oO272vqxLIwAA7DCGQETxg9t26+QN1iTNpZCLgva9xgi oH7V/YnAw8LPCfzUdoitc3PFTbB0zxPT5ZRktgzZOBGCbCA+f98dh1KjiM+gJJhapqeiLn hfEE6byKvP26Bkj+Zj/9qxCSci1vfKijcP8TwGOdux1+aGDn1H3g4qar/nnQKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=P8mfKyQs; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b="M1+Zra/C"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735988302; a=rsa-sha256; cv=none; b=PTjg67yu0S0OFuQnSDzpy2DPKA6MfrlKQFK0TaGzrBx6IygB0/bCKM7+UG/rN9YcdJPTv7 97aosgzsOBH4ESmqiSlzJbax9z4dwh/+Oz/KtKJlppqvVbtW+V6i0lMkZnezBwKk5BstPV zB3XrMI43PNoYSnH3ULxmWaZDA88tuyFh6z+qgrKAtzM08m44okjJ3ujK8DFI6L3h/fT2E 7jVCuLyQam/gR8eartMPuekMvA3piCsVpPM17Y7sbt/EZMG5tqin/r21AYt/I2HgEndWhI p0htXXtRB07NfmAw/K0RYMI0OGffWISZGInYWjzGRDxNlikV+LQ02FDQAP2l2w== 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 06B1E64EEF for ; Sat, 04 Jan 2025 11:58:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU1r2-0004CI-IM; Sat, 04 Jan 2025 05:58:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU1r0-0004Bu-AQ for guix-patches@gnu.org; Sat, 04 Jan 2025 05:58:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU1r0-0000Dy-1a for guix-patches@gnu.org; Sat, 04 Jan 2025 05:58:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=irUkQx8AH/aJHgtG24blNzStJ0PeVdNa/pqmovqSG5E=; b=P8mfKyQsx/jbM9aW2d74Lw/U11IZ4tLthO1m5dWvRQN/yv5knjTm7cbnFKvFfLqSecMG6SaKYlVCbZAu8tHbAVjnfyGx7++edYLMUeV++xTzFvQdT7NHyBZAzzRwYNFLV6uYpRedUm6RPerUaoh4Wur0cn/XrxbXdG0To9FSl6X2ELCGEMR35DfieAthWgXb6WNJ+rSROfdTvueWsE36920hYz3sEM9YMfS8LCgPPmvNONygxciEHTaC06zEsa4zecHpwrZp7eUNKoo0W3VrhK1GHyCKJxtsvnzHoVFwwE5W8VNW/SnsP4kYpdxjgr1RAXxoZK0xtCCgvZwTO+eFEA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU1qz-0000x2-Si for guix-patches@gnu.org; Sat, 04 Jan 2025 05:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75270] [PATCH 1/3] services: greetd: Improve greeter configurations. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jan 2025 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75270 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: muradm Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 75270@debbugs.gnu.org, Maxim Cournoyer Received: via spool by 75270-submit@debbugs.gnu.org id=B75270.17359882663630 (code B ref 75270); Sat, 04 Jan 2025 10:58:01 +0000 Received: (at 75270) by debbugs.gnu.org; 4 Jan 2025 10:57:46 +0000 Received: from localhost ([127.0.0.1]:53512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU1qk-0000wU-6W for submit@debbugs.gnu.org; Sat, 04 Jan 2025 05:57:46 -0500 Received: from 14.mo561.mail-out.ovh.net ([188.165.43.98]:45833) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU1qg-0000wI-Ab for 75270@debbugs.gnu.org; Sat, 04 Jan 2025 05:57:44 -0500 Received: from director2.ghost.mail-out.ovh.net (unknown [10.109.140.34]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4YQHTc4MmBz1PLV for <75270@debbugs.gnu.org>; Sat, 4 Jan 2025 10:57:40 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-h5bxl (unknown [10.111.182.10]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6B5001FD95; Sat, 4 Jan 2025 10:57:39 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-5b5ff79f4f-h5bxl with ESMTPSA id oTxfByMUeWenrgMAXukBPQ (envelope-from ); Sat, 04 Jan 2025 10:57:39 +0000 X-OVh-ClientIp: 90.92.117.144 In-Reply-To: <87ed1j6d0l.fsf@muradm.net> References: <8ea5f949f8b473c3ec68e7d2f5f40c1152c6c631.1735771462.git.mail@muradm.net> <87pll4owui.fsf@ngraves.fr> <87ed1j6d0l.fsf@muradm.net> Date: Sat, 04 Jan 2025 11:57:38 +0100 Message-ID: <87zfk6zw0t.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 1451284984132002497 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrudefiedgvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepveekleeujedthefgffekleekhffhffetgfdvheekleeuhfehueeljedtjefhvdfgnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegpdefjedrheelrddugedvrdelkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeehvdejtdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeiudgmpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=irUkQx8AH/aJHgtG24blNzStJ0PeVdNa/pqmovqSG5E=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1735988260; v=1; b=M1+Zra/CzuI+xaEMulU0tsJ1Y+jT6WYSokUM5Aml2bNm24mBsgGiFr+xR0dusjWRBXENE+bv UWYwFyQVxklnJDpiHCjQtcS5PsfMJ9hNXstYWesKTeBIJ4Nzr/zjLi/eXMXrUSpil0BfJnUcUzZ Za1K0O8+nQowRxRBv5p0kpcy0RpDise4NtRH4we7uhHh9M7Q6p6glUWZkFaOBGezR5fz66CobxV dKXnFOJEj2hnmYbiQLJxHwPZy0Dv3FY6HdRd0NQSyO6niDFB6QrUzCmSNlFGLOHkp3T9EqQufF5 p9Y4AGMWJlgZz9ZhPCE76jCvbtpqUsCi4e+aXiWjOLDeg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 0.71 X-Spam-Score: 0.71 X-Migadu-Queue-Id: 06B1E64EEF X-TUID: 1OeeOzbrYlTl On 2025-01-03 20:08, muradm wrote: > Nicolas Graves writes: > >> On 2025-01-02 01:53, muradm wrote: >> >>> This improvement focuses on providing common user session >>> scripts >>> for use by multiple greeters. It also fixes incorrect use of >>> `XDG_RUNTIME_DIR` for `wlgreet`. `wlgreet` requires compositor >>> to >>> run. We provide common sway based greeter script, which can be >>> shared by other graphical greeters. >> >> [...] >> >>> +(define (make-greetd-sway-greeter-command sway sway-config) >>> + (let ((sway-bin (file-append sway "/bin/sway"))) >>> + (program-file >>> + "greeter-sway-command" >>> + #~(begin >>> + (let* ((username (getenv "USER")) >>> + (useruid (passwd:uid (getpwuid username))) >>> + (useruid (number->string useruid)) >>> + ;; /run/user/ won't exist >>> yet >>> + ;; this will contain WAYLAND_DISPLAY socket >>> file >>> + ;; and log-file below >>> + (user-xdg-runtime-dir "/tmp/greeter-xdg-rt") >>> + (log-file (string-append (number->string >>> (getpid)) ".log")) >>> + (log-file (string-append user-xdg-runtime-dir >>> "/" >>> log-file))) >> >> Could you explain why this is necessary? If I'm not mistaken, >> we didn't >> used a special runtime dir in RDE, and it worked OK. >> > > When you start sway, it has to put WAYLAND_DISPLAY somewhere. By > default it is put to `/run/user/`. However greeter is special > limited user which is used to run without logging in. Because of > that, `/run/user/` is not created by PAM mount. For special > purpose we can use any XDG_RUNTIME_DIR. Sway does not support > specifying location of WAYLAND_DISPLAY as far as I remember (I was > opening an issue about it long ago, still was not resolved). IIUC, it's because of PAM mount execution order that this happens? So there's also no need for that for people that don't use PAM mount. Maybe completing the comment as "/run/user/ won't exist yet due to PAM mount execution order" comment would make that clearer? Is the logfile here the one logging everything Sway? Could you make the logfile configurable or is that not possible due to unguaranteed dir existence due to PAM mount? We are making an extra effort to locate logfiles in the same dir in RDE. (I could also try and make a symlink a posteriori to the right dir). -- Best regards, Nicolas Graves