From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 IARROqxeeWcnqAAA62LTzQ:P1 (envelope-from ) for ; Sat, 04 Jan 2025 16:15:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IARROqxeeWcnqAAA62LTzQ (envelope-from ) for ; Sat, 04 Jan 2025 17:15:41 +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=eYTZMIu+; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=sR0CW0Aw; 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=1736007340; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=KivnzW+Kqd2hKimK1F52TE1f8q0FcvUrd+E7fAcmCmw=; b=pkz4QnPAvH8MBSuQG5FS7dadBmUoNMXgm48PhtyF3VXFSP/exJIf9lC9ePbpPN4Zv2o7WI EOim6BXgeHT7XqS4XM88GhbQejfhZgqO5wqGg3PAJu7hBgs2dWnFhoWF7MkG+UKLLKn1D/ Y0Go5/IzjsK71j+7FlTyt3yEhLxr5PYP+lCDfaBppPEF2aDKVvGnT5sp1TTqk60S9c82QJ 36xABbMXWQS9+Msbq3DbnKrRHiH3diuY5ViKHqqqR1MpcakCkyibWjCkcwVg7v1eBT9mbh HGtRJPjdDTVK+Odc9Ebw+LYLe9D+wWAYX8py3VqI4FdyVIcOfarSVq4rV7KlGw== 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=eYTZMIu+; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=sR0CW0Aw; 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=1736007340; a=rsa-sha256; cv=none; b=VZC7H2N4b6BalQGj0eA9bNy+GxVyg+xUJSGj0J85kbrNS7MJVybDSfmrBqcBF71eBwC8j1 Om9XLUFKxKUjC86+3yAPYRJfAg3V3h4e3TxYSeEy685d8/P0KxP39VyJQbkZVnRgGCpvvE sJxGPUb2j+ig+Ce79vsUXmYmfegrxPdAYbDKweO04eacBmy4g9Ylm0zq1bYoYvxvtWZZQW P597YS/rcTkE8G0dQja/XoLTOs5/Go+lS2FjsqEvmmeu5MZY1JkaUhPX4JQM/dIi1fY+UH mUVBWk22FAYHdnofMJinHDaBlBF3i76P2C9qG8qYlMW3TMAuqhWTHRiL0BAnrw== 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 BA73A71B6 for ; Sat, 04 Jan 2025 17:15:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU6nr-0002af-F1; Sat, 04 Jan 2025 11:15:07 -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 1tU6np-0002ZR-0X for guix-patches@gnu.org; Sat, 04 Jan 2025 11:15:05 -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 1tU6no-00067L-LD for guix-patches@gnu.org; Sat, 04 Jan 2025 11:15:04 -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:From:To:In-Reply-To:Subject; bh=KivnzW+Kqd2hKimK1F52TE1f8q0FcvUrd+E7fAcmCmw=; b=eYTZMIu+rijTrpKsU8V4WCWFOCb9w/YTmBy/D9JDOFpqlkROMo0+QfKUsrEec53TxjofkR2FIQhqGvtVQRFJdXfjKcYQWpjIyMtWKiGKYHykz+fRnHndX/TrFiKgxAgJ7QDxJoPzbqu9KeIytIFd1RodLH+90WjJwyeK+xMd/DF3rVesbJFDE88lbTYP6HcW7zE3VvV3rW3Me0aF9l6ACG0kZf2S8APfks+BRk9N0pmQy4qiMPrDN5g+ps1r9gF8QHvyutNlPo3Fl5Nk27OneKhoWvJQ6SSjN6ODzJT7UU1/HgxC0Q3t2efUx6Fj174+xI91FJCx+h5I3iKtH4OPiQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU6nn-0008Ph-H9 for guix-patches@gnu.org; Sat, 04 Jan 2025 11:15:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75270] Fwd: [bug#75270] [PATCH 1/3] services: greetd: Improve greeter configurations. In-Reply-To: Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jan 2025 16:15:03 +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: 75270@debbugs.gnu.org Received: via spool by 75270-submit@debbugs.gnu.org id=B75270.173600728132251 (code B ref 75270); Sat, 04 Jan 2025 16:15:03 +0000 Received: (at 75270) by debbugs.gnu.org; 4 Jan 2025 16:14:41 +0000 Received: from localhost ([127.0.0.1]:56835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU6nR-0008O5-Dm for submit@debbugs.gnu.org; Sat, 04 Jan 2025 11:14:41 -0500 Received: from 4.mo575.mail-out.ovh.net ([46.105.59.63]:43525) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU6nM-0008Ng-00 for 75270@debbugs.gnu.org; Sat, 04 Jan 2025 11:14:39 -0500 Received: from director3.ghost.mail-out.ovh.net (unknown [10.108.9.253]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4YQQWF6mVJz1qJh for <75270@debbugs.gnu.org>; Sat, 4 Jan 2025 16:14:33 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-gmlr4 (unknown [10.110.96.9]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id A86EE1FE0F for <75270@debbugs.gnu.org>; Sat, 4 Jan 2025 16:14:33 +0000 (UTC) Received: from ngraves.fr ([37.59.142.103]) by ghost-submission-5b5ff79f4f-gmlr4 with ESMTPSA id gATzHGleeWeFpQUAVUMmmA (envelope-from ) for <75270@debbugs.gnu.org>; Sat, 04 Jan 2025 16:14:33 +0000 X-OVh-ClientIp: 90.92.117.144 References: <87jzbar8oa.fsf@muradm.net> Date: Sat, 04 Jan 2025 17:14:32 +0100 Message-ID: <87a5c61rpz.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Ovh-Tracer-Id: 6802968715086586433 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrudefiedgkeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufhffkfggtgesmhdtreertddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpedvudevtdeggfelffektdegleelffejkeefgeegkedtudeliefflefhudeghfegteenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggedpfeejrdehledrudegvddruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeehvdejtdesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhegmpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=KivnzW+Kqd2hKimK1F52TE1f8q0FcvUrd+E7fAcmCmw=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1736007274; v=1; b=sR0CW0Aw+TK0MAAA3IDrJLqIZdxKPsAKxqaPssfK0jMnz4JLlt94i+nbbEn42mRmJQYVYUNW KM52ak7daUZllOtNz0lU9RJjqwEdFnJQgrwHFFzSbcQJoVBjJ3eLYJiSxaLJaj7OYvjWCi4d5B6 WmCgJXfMuBMsUx/B6J+jlxVS0g+eFkk6nhYVb+0J5LMC3Xqm+bBUKjdSpAw/IJ9lfgdH2g1p8zl zEc6esVbp2OleOE4uUVvKQz1SBLg4/iM1UmHk7nyARST0vseKCOQlxY/sLSdcE73y7A89Z7mWq6 Wis5eajCOskPUmI8RQQ/ei6cpBs1jhDqtG4CTEUWVrvQQ== 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: -5.60 X-Spam-Score: -5.60 X-Migadu-Queue-Id: BA73A71B6 X-TUID: yvmIOMWaO+xH --=-=-= Content-Type: text/plain -------------------- Start of forwarded message -------------------- From: muradm To: Nicolas Graves Subject: Re: [bug#75270] [PATCH 1/3] services: greetd: Improve greeter configurations. Date: Sat, 04 Jan 2025 16:49:09 +0300 --=-=-= Content-Type: multipart/signed; boundary="==-=-=" --==-=-= Content-Type: text/plain; format=flowed Content-Disposition: inline Nicolas Graves writes: > On 2025-01-04 11:57, Nicolas Graves wrote: > >>> 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). > > Actually, I'm not sure I understand properly. > > I use agreety, then sway through ~/.profile because default is > bash > --login. This is most straightforward and IMHO correct way to start whatever user wants. > It works OK, because the user (not greetd) launches Sway. > Should I care about your changes ? No, you should not care about stuff happening in script in `make-greetd-sway-greeter-command`. User session is started by scripts within `make-greetd-user-session-command` and `make-greetd-xdg-user-session-command`. Where user session command is specified by `command`, `command-args` and `extra-env` in ``. Most notable impact of this change, as noted in cover letter is that user session now factored out. Now you are able to pass instance of `` to any properly defined greeter, which are agreety, wlgreet and gtkgreet as of this change. I'm not RDE or guix home user, but I suppose that their entry point should be an instance of `` or combination of greeter and ``. > If I want to skip this bash step and make greetd launch sway > directly, > then I would need this script, otherwise, it is not necessary, > am I > right? Is there any upside / reason I should switch? Technically, you may set `command`, `command-args` and `extra-env` to sway, its required arguments and if necessary environment variables of `` instance, carefully considering `xdg-env?` and `xdg-session-type`. But, as I mentioned above, IMHO and from my experience, starting from .bashrc/.profile/whatever from user home and editable by user is more correct and straightforward. --==-=-= Content-Type: application/pgp-signature; name=signature.asc Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ0FBZEZpRUVTUFk1bG1hOUE5 bDVIR0xQNk03TzBtTE9CZUlGQW1kNVBGVUFDZ2tRNk03TzBtTE8KQmVLRjVCQUExZW5mZGFFUEJN SSszaHNrMGFuSGFCVGFtdm1vNzNKRk9xMTZPRlJ6dWk5UHBaTmFDQUlabkZvOAozdnducE91NGtE WkVQRGcwcjhiYUJaNTRjOTJrOG5TQ1UzVEJkTUJaM3E2MktZc3NkS3MrSUUrVkxrV2tYYmFmCmFS b3poeDFnRks1bHlNamxiWGh4bDBMZ0xQN3Nja3U1Qm10U0RubTU5WXVkTk9VZTdHd3lhV1RCRXRD UG9nRkQKRnlTUjY1TktPVlg3eFNGNWJKYnUrMlVYcTV2WFgyT0didjZSa1J5MjBnU0pOZENXMFJ4 OUg0L3cwNmwrYVVzQgpENHpxcTFHT0VHMFlhb0taZkNidlYvZnF3Z0Q3UDdja29kcHJTOGpaTWFr eCtBa0djMDBjaHJlTTZ2M0tOWlJDCnFHTzB3TXpXNWVOUWJUNnpRUHNKVUd6Mm1sOWRTbWppdCtT TXV0eEJ5dzZTdFNTR3dSaktodHFmMWNRMXkvVjgKUUVBT0drekR6VlVaSFp3VWwrMTNobzcxUWkw eGMyYmdXOHFValljaEFFQ25ZbStLY1E2OWkwOEE1dzRTZThEWApMVmhsM1hVUUVIR2ZVZmZ6dytM TURaVEpUYjN0VUFhS1ZrMlhZYTZTNDNuME5lZFhYeVFQN1Fjc2JYSnVGeFl5CkdMZ044YjlXN1RE Q3ozMUdiMVY2ajZLUW1QWWpoeUNBcTZ1OG9PdHVxd1FXTW50T2dudHh5U2NMeWl5UUVkVWgKbTEy cmp6R2lLTWF6cEF4THl2Z2cycHphdTFQRVF2RXV3NGFLaGFIREE5eXk3L2lmbDVyZWZITEIxUlhO YkI4dQpKbi92aG1IMVkwclo5RkJRQU5Ba1JVb3VVVG1FWHg3bDI3VkRSVUl0Rk1OSDAwK0JEZ0U9 Cj1OOVhoCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ== --==-=-=-- --=-=-= Content-Type: text/plain -------------------- End of forwarded message -------------------- -- Best regards, Nicolas Graves --=-=-=--