From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GIy4BwEnRWU0pAAA9RJhRA:P1 (envelope-from ) for ; Fri, 03 Nov 2023 17:59:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GIy4BwEnRWU0pAAA9RJhRA (envelope-from ) for ; Fri, 03 Nov 2023 17:59:45 +0100 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 3A9C351401 for ; Fri, 3 Nov 2023 17:59:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FHJ22zSK; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699030783; 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: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=RfaLIkxhxcQGSo9gaIGl4OHtq3/ZAp8/y7nQSZGMqCo=; b=pTG/RsozPF6s95On5tVbKbnoheyotHa2rz2PtP1SuXGL33K9C8Or5fYExiLwv3UfoKqyBy D2i2+4c+gd30fbfu9MhCh+FP0cAxk9L0RB48iJ+69ZQgqKUNIWdOYh2sRKWN1i7ACYFMsC /9AhiO7yXZHh4JZQOyiRpzeUqRuAdz5lZ7OdieOLQ8O/en/ZX7+5LwRCX1dFxEiCWXSASz wn4xRjvLzIgrenlWTlI/ESOkbDPlKoV+zsv+tnx5sqlsfdIFZPu1L+aVhaTsLEihe8FA93 Bo1vGgiZzF8oijMcWu3kLdIn33DG3vgUG7LfT7d0rw+t35q2ifPOhQmwsLzmpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FHJ22zSK; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699030783; a=rsa-sha256; cv=none; b=MjFD2sEPcoJpTx+9VKpwzvaXW/oBcNfVPlheruB8UG3xCrjd+nO2kYrioZ6mB4NCdr45f1 nXOHUbQfOY22ktwtIkqx8TuBT7TGEcwx83Emg8E4F2a/bv/lKzO0EVzyfb+Q+pfnn+UmsI 7kJbPhIyHfkYf1QvWm0OTmAn2bXewyWN5Rchw+bpmZuYWmX5b2Rk4gU+bFBmvAggocvQLn zoce55WXwKR790tdWnsWL3M2axw1uCor/QxEAHJ4SamgmYKZInOtcDqQLdHwgBbIhEXTL1 klXjQqwg9nBQ2M8qzy77/wRevY1rQJgYyFhQuR4ITRL6bTbDA0WgYoaojB4V4Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyxW7-0005g9-6F; Fri, 03 Nov 2023 12:59:31 -0400 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 1qyxW5-0005fa-Hv for guix-patches@gnu.org; Fri, 03 Nov 2023 12:59:29 -0400 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 1qyxW2-0002Nx-Jw for guix-patches@gnu.org; Fri, 03 Nov 2023 12:59:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qyxWc-0002mZ-6K for guix-patches@gnu.org; Fri, 03 Nov 2023 13:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65343] [PATCH v2] home: services: Add 'x11-display' service. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Nov 2023 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 65343@debbugs.gnu.org, Brian Cully Received: via spool by 65343-submit@debbugs.gnu.org id=B65343.169903075610613 (code B ref 65343); Fri, 03 Nov 2023 17:00:02 +0000 Received: (at 65343) by debbugs.gnu.org; 3 Nov 2023 16:59:16 +0000 Received: from localhost ([127.0.0.1]:59687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyxVr-0002l7-Te for submit@debbugs.gnu.org; Fri, 03 Nov 2023 12:59:16 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:40202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyxVp-0002kr-PD for 65343@debbugs.gnu.org; Fri, 03 Nov 2023 12:59:15 -0400 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c504a51a18so5676351fa.1 for <65343@debbugs.gnu.org>; Fri, 03 Nov 2023 09:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699030712; x=1699635512; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RfaLIkxhxcQGSo9gaIGl4OHtq3/ZAp8/y7nQSZGMqCo=; b=FHJ22zSKNeKXEJQDHVb2nU15Kb30J+odxkuWm2ujFDvrL4XjI6kI6uZzIFgUfE0JaJ onUf/x4JDWLYrLXwVtCW6TUxrLF7FHkGNfh0Mg7k27LFRHsGGQKZYaN73/DYQDsC62e4 vqzG4eJqEw2CtIqOzbFvztQHJtZI7ZzeIIdZ8J+kpl+XLMwbaeobWyKNyv09yG+nFs6S rAM5NKBxzKQV59xjLqnLR2sdRo/YCbwbVx+BnajMdHeW4UFRnDu6VBsH4rvnCDwf5jqr QV1kx1zdj7YH6Q7PSI8nGxJJbhxl1mX+qdFMN06jVeE8b+FUc8e4oackJ8radia1OCM1 XMJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699030712; x=1699635512; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RfaLIkxhxcQGSo9gaIGl4OHtq3/ZAp8/y7nQSZGMqCo=; b=Vm5D2b26c+22H3y+qKRt5GS4LMAh+lGOEONShnvyKTGmOKzBcu7mhtEebX085Cd1c6 /aL5gx8K63MipNIAXRxkT11j1Q3u0Olah7iaKZeC0H97xDrhVRuJxr3RAwcZuEALNwBs z98+7JaGB2pERg/gBMAXHWwzHsD9k1Vkyyk84CR5Qv/NtXeK+fMX9/E6r+S8WYDNX1AU U9bQWs/7n43Z5VGycqEOhs4v6+I81uwJkMOSA7cx78YpQ7BND49wwjE/blxzb0cnaMdH yEjVRbrurxXBvGwd66ZtzOt+2/sKGwS7ez6ZZnAn/EnXBL9yoEnfAJFKmer866n8HPO0 2gFw== X-Gm-Message-State: AOJu0YzbPc/K6WiZA6IaZuXJrlqUAwPs0lkFEDXFHbKEeGCwfC1X3Ogf NHmJzySzbwEHhiiQEIkJG7AyUERAAJY= X-Google-Smtp-Source: AGHT+IEThWcO3KUw/37h0YTW/zjkalzVdPaHIqxaZynOjKoYwawGBNrDqwE5g61Gy1CmYpJQKpKRjQ== X-Received: by 2002:a05:651c:1a25:b0:2c0:1959:fe59 with SMTP id by37-20020a05651c1a2500b002c01959fe59mr20832452ljb.3.1699030711691; Fri, 03 Nov 2023 09:58:31 -0700 (PDT) Received: from localhost ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id x6-20020a2e8386000000b002b6e77e87fcsm269159ljg.68.2023.11.03.09.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:58:30 -0700 (PDT) From: Oleg Pykhalov References: <87il8c2xdd.fsf@gmail.com> Date: Fri, 03 Nov 2023 19:58:29 +0300 In-Reply-To: ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 20 Oct 2023 23:09:57 +0200") Message-ID: <87lebekc3u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: , 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-Spam-Score: 0.79 X-Spam-Score: 0.79 X-Migadu-Queue-Id: 3A9C351401 X-Migadu-Scanner: mx13.migadu.com X-TUID: KpMsuPcfgP2p --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludovic, apologize for the slow response. I had some minor issues with setting a 'home shepherd' instance in a fresh testing virtual machine (not related to the current issue). Ludovic Court=C3=A8s writes: > * gnu/home/services/desktop.scm (x11-shepherd-service): New procedure. > (home-x11-service-type): New variable. > (redshift-shepherd-service): Add 'requirement' field. > (home-redshift-service-type): Extend 'home-x11-service-type'. > * doc/guix.texi (Desktop Home Services): Document it. > --- > doc/guix.texi | 34 ++++++++++++++ > gnu/home/services/desktop.scm | 87 +++++++++++++++++++++++++++++++++-- > 2 files changed, 116 insertions(+), 5 deletions(-) > > Changes in this version: > > 1. =E2=80=98x11-display=E2=80=99 defaults to the =E2=80=98DISPLAY=E2=80= =99 value of the =E2=80=98shepherd=E2=80=99 > process, if any. This makes it fully compatible with what we > have now (processes basically inherit environment variables of > the =E2=80=98shepherd=E2=80=99 process). > > 2. One can specify a display: =E2=80=98herd start x11-display :42=E2=80= =99. > > WDYT? I think we are going in the right direction, thank you for the implementation! During testing in a virtual machine I found an issue, which could be reproduced with the steps bellow. It's not an emergency issue which blocks the patch from merging, because we still have a workaround in our pocket (stop and start =E2=80=98shepherd=E2=80=99 manually on a specific = =E2=80=98DISPLAY=E2=80=99). =2D start =E2=80=98shepherd=E2=80=99 manually on =E2=80=98127.0.0.1:5=E2=80= =99 by typing =E2=80=98shepherd=E2=80=99 in a GUI terminal; =2D stop =E2=80=98x11-display=E2=80=99 with =E2=80=98herd stop x11-display= =E2=80=99; =2D start =E2=80=98x11-display=E2=80=99 with =E2=80=98herd start x11-displa= y :1=E2=80=99; =2D start =E2=80=98redshift=E2=80=99 with =E2=80=98herd start redshift=E2= =80=99. The =E2=80=98redshift=E2=80=99 service starts a =E2=80=98redshift=E2=80=99 = process. The /proc/REDSHIFT_PID/environ file has a =E2=80=98DISPLAY=E2=80=99 variable se= tted to =E2=80=98127.0.0.1:5=E2=80=99. I expect that in /proc/REDSHIFT_PID/environ file the value of =E2=80=98DISP= LAY=E2=80=99 environment variable should be =E2=80=98:1=E2=80=99, as in =E2=80=98x11-dis= play=E2=80=99 service started right before the =E2=80=98redshift=E2=80=99 service. Following services could be used to get =E2=80=98:1=E2=80=99 and =E2=80=981= 27.0.0.1:5=E2=80=99: =2D-8<---------------cut here---------------start------------->8--- (service lxqt-desktop-service-type) (service xvnc-service-type (xvnc-configuration (display-number 5) (localhost? #f) (xdmcp? #t) (inetd? #t))) (modify-services %desktop-services (gdm-service-type config =3D> (gdm-configuration (inherit config) (auto-suspend? #f) (xdmcp? #t)))) =2D-8<---------------cut here---------------end--------------->8--- A workaround for this issue to stop =E2=80=98shepherd=E2=80=99 with =E2=80= =98herd stop root=E2=80=99, and start it on =E2=80=98:1=E2=80=99 with =E2=80=98shepherd=E2=80=99 in a G= UI terminal. Regards, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmVFJrYUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pz3pxAAqmUNlpqPUxbA7v7Uxe/Z2flWfjRA HKesq8kCTQEP3XHAo6QTh/9W3FhWKOsk5Rs7votNLCsaB5ILylHXU2TpsQEB7f/L vMsm4DOZ5tK1lXqAW4hG8hMSE8b2Sax2aZE+mldNwyZ6g3AV53ydryQGiZbj4K2Z 4/Ph7BkjTqzWSXI1MKskAvHG4aGdQQ0QLcq91ML7laLuecFOi3Q59SStuI/NoAMG fMs1H6xKSzaCy2mnsIOjmlDgiJMZ6UACXXY+k4rvtlJsPUxU30ZoFRaIPoilVdnq N+fFPaCt1v6QMALqqMkuqUIJOJC+/soWevyK0Fbg2p/UJTiG48y34tGpRAv8NJvw /+vB55dfIMCtJ6Tc5P7l2hiLD6lfKZwAi6ufO/lT4EsK6jlV09azYHn74nU4hRIq N2SgvR1EYyhWFqUBf+lAvS9Mrvt3OKlueFZzG1PxqmRfyyUb1ANBpcWAMc3oEC7o 1Fl9xtWQrwVIkgsTXreDfCcreUamRL0Rad83xm7IXZ5m1+jOic/gfL8V1K3ibyQF yx0tDcT9YwETfrU3/smb3oKJo4hauRwzG6Xrxo4elfiJxV2BNcNROSsntLFzWgwl pMVIqI5WaQ8cn3dkSJ/RA3j3uNzV3cfnw72dY+LXe8PlaupjctSSGY7c49azS0MK /tJdGgHlfAaol8o= =bLOA -----END PGP SIGNATURE----- --=-=-=--