From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UKcVILZU62JdiQAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 07:10:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MAYOILZU62LrKAEAauVa8A (envelope-from ) for ; Thu, 04 Aug 2022 07:10:14 +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 2692623679 for ; Thu, 4 Aug 2022 07:10:14 +0200 (CEST) Received: from localhost ([::1]:52572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJT7c-0006C7-OV for larch@yhetil.org; Thu, 04 Aug 2022 01:10:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJT7S-00069V-Eh for guix-patches@gnu.org; Thu, 04 Aug 2022 01:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJT7S-0008TA-4W for guix-patches@gnu.org; Thu, 04 Aug 2022 01:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJT7R-0003ze-Vz for guix-patches@gnu.org; Thu, 04 Aug 2022 01:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35305] [WIP] LightDM service Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Aug 2022 05:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35305 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: L p R n d n Cc: Ricardo Wurmus , brice@waegenei.re, 35305@debbugs.gnu.org Received: via spool by 35305-submit@debbugs.gnu.org id=B35305.165958978815313 (code B ref 35305); Thu, 04 Aug 2022 05:10:01 +0000 Received: (at 35305) by debbugs.gnu.org; 4 Aug 2022 05:09:48 +0000 Received: from localhost ([127.0.0.1]:50767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJT7D-0003yv-Qv for submit@debbugs.gnu.org; Thu, 04 Aug 2022 01:09:48 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:36445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJT7C-0003yh-74 for 35305@debbugs.gnu.org; Thu, 04 Aug 2022 01:09:46 -0400 Received: by mail-qt1-f178.google.com with SMTP id h22so14170955qta.3 for <35305@debbugs.gnu.org>; Wed, 03 Aug 2022 22:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=a0HTMn5rmusWP6XgCanYku57+nuTeS7tzG+KKh8QyP4=; b=RYe1Wd7lObO1EmoQQEmPFxv7hi07e+JocNzhiMzMNeqykXA/jBbUWOkm8hcnEhHlrT IcjPopGGH6u+f/K8JtRVanV0yrzW7q9asNtRCKxDKQI9R0o4201R3pRdigMHSs3YP0vn QRnmfl5p+AB1Fhkk++UNh2+kiZihOBgghrAAOQs3MxaRpksYsxZGX6rCaUPRLi/0b2b2 F1jOKRW3DDGPZi4UFfrQNnkilxWsS6N3KtKz9TCTS+8aP3It9wBEEOm7IT8cPHmUpOyp RRMIOVC9VcFTm5IlwuluqPihX+8dBRjf3Apb1WmHL5+V5yS8COrEI637lnzdlKt82Per waiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=a0HTMn5rmusWP6XgCanYku57+nuTeS7tzG+KKh8QyP4=; b=JXNfVUmx4BSHJarb8IfKExRXVIQh4Jr5RWxlRMnky6rqVKpEqTOOCjn2RzYZveEFJ7 VE/KysXBjYdwfglHryU3VohBYQcgsGfMxZwY84qynV58ZGnfCdfqi3vciifaAd708goZ xr4tDNNyce0O7g6dT0khHEWn+brRqE6GfEPVP4AXpHEH44FcDDoOhUYuCX+DYtvaL3Ar ZDfNu/nbJw4ILqqrD4NHE+mNh18Z4F+ZPv4TOhWKAdR0M33VxDaklaryIYOoJqL8VUMp t/v9EyDvH2yNVaTbWM3RgQi41keQ2UyYooDlJextbukoS1Nk8XM7UELwYdSDVV5ulcW+ Kqig== X-Gm-Message-State: ACgBeo1dcEf8MAPJum6KxUVrxbt+xi+p8rSB5NrEqnkQ7FKVjF3/TOEs hoHDHbzg2aqx7TOUXIJYl2h0aoDHBqc= X-Google-Smtp-Source: AA6agR5TSoSxwXivYhRdt7PHz7rL1BxPuXnb0QnMuK9Yo4bXkbVzZ9MMuddzVsrynBvgsn1cAyrZsw== X-Received: by 2002:ac8:5a48:0:b0:31e:f288:3d68 with SMTP id o8-20020ac85a48000000b0031ef2883d68mr121229qta.111.1659589780342; Wed, 03 Aug 2022 22:09:40 -0700 (PDT) Received: from hurd (dsl-151-182.b2b2c.ca. [66.158.151.182]) by smtp.gmail.com with ESMTPSA id o5-20020ac872c5000000b002f39b99f6a4sm33096qtp.62.2022.08.03.22.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 22:09:39 -0700 (PDT) From: Maxim Cournoyer References: <87zhooso9g.fsf@lprndn.info> <87imh9gnvy.fsf@lprndn.info> <87k11m2hqx.fsf@elephly.net> <87zhahcfgh.fsf@lprndn.info> <878shz38bf.fsf@elephly.net> <87o8qtzd71.fsf@lprndn.info> <87k116e3ee.fsf@elephly.net> <87tv09zo70.fsf@lprndn.info> <87h7w9ej4w.fsf@elephly.net> <871rmp4ll9.fsf@lprndn.info> Date: Thu, 04 Aug 2022 01:09:38 -0400 In-Reply-To: <871rmp4ll9.fsf@lprndn.info> (L. p. R. n. d. n.'s message of "Mon, 08 Jun 2020 17:35:14 +0200") Message-ID: <87zggkppbh.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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" 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=1659589814; 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=a0HTMn5rmusWP6XgCanYku57+nuTeS7tzG+KKh8QyP4=; b=QF73yKTx5thOmOS61BlWfrFemCP5rePfbyWBmURpRwAa0iEI0pQN3SL8eZyJ8Qt7lyoAih 6C3nD8B8j225TvOj4gTX6onn0wTjdgyY3Xz8K14AoT8LXs4ck/IvBppr5TcbQKco+SHLph hJcI4+L+F3YcUyNYRgZ+cO6HGoQjvMFMLiQ8p9h50LrdNJ2eH2rDWm4KYn2CzGOV5JbOPc 8bahjhF+F+DADXqXnu6cz6hdhzv6D1695OKAbujn6H3VCFYtDtzMy4+wIprq4Cm5hSBcvZ 9waG4lbnSOIOlLamDltEvM5vBC57Os6lkcm8+ybFs33qmnpA1HHKGfH32QM0hA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659589814; a=rsa-sha256; cv=none; b=FGT/SQyohM5lrLcFFcsf94reMiFCnt0VveSTI9qPNdtI3lxGAQwcv/UUtG3w1ltDGAk1oF Z3RrVIW8kPAMwpJx6tKna2fA6+2kh02VZIAuX4p9nTscG2yEDcm+i+n7Fn24SbRJOOUaNu qZVVU+tWadDNKNaCjPu8ekRrq2yBwIKqIjwZ9PQ1EQAwyz7YAOx4ovuIZ32oEWLmxIFlbP 6cdy6imW6eibspXzkTX/SfsK9vSiofw0/R0ZpIkI8kbEvbxxnxh91YpM3uFjpBhtlohK1H c6axZDKnmv6kkrwOeopFzGS5V2hbwapXNyuvSIf7HD/sIZ7M2xb3CblIScxPfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=RYe1Wd7l; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 6.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=RYe1Wd7l; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 2692623679 X-Spam-Score: 6.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3q+ZtJ5PMCMx Hi, L p R n d n writes: > Hello, > > I spent some time thinking about the lightdm service and what are our > possibilities so here are my thoughts and conclusions. > > (Here, I'll only describe relations between seats, greeters and the lightdm > service as it's our main source of problems) > > So if we get rid of the greeter's services, we can have: > > 1: > (service lightd-service-type > (lightdm-configuration > (greeters > (list > (lightdm-gtk-greeter-configuration > (seats > (list > (lightdm-seat-configuration ...)))))))) > > Here seats are defined by greeters. This way the user doesn't need to > fill `greeter-session field as we can do it automatically. But there's a lot of nesting > (and two lists.) + How do we define autologin? > > 2: > (service lightd-service-type > (lightdm-configuration > (seats > (list > (lightdm-seat-configuration > (greeter-session > (lightdm-gtk-greeter-configuration ...))))))) > > Defining greeters inside seats allows in the `greeter-session field make > it a little simpler. However, we would get errors or conflicts if a user > define two different configurations of the same greeter for two > different seats. The thing is that we can only have one configuration > per greeter as it will always look for a hardcoded file in /etc/ (worst > case) or a file we hardcoded at build time (best case). :/ > > 3: > (service lightd-service-type > (lightdm-configuration > (seats > (list > (lightdm-seat-configuration > (greeter-session 'lightdm-gtk-greeter)))) > (greeters > (list > (lightdm-gtk-greeter-configuration > ))))) > > We can have separate fields for greeters and seats. The user will have > to define `greeter-session by himself. And what happen if they define > multiple occurences of one greeter's configuration? After reading more about lightdm (and there's not much to read about it... [0]), I can better understand your points above, and I find #3 perhaps the most natural. The negative points (leaving place for user errors) can be mitigated by a validating the configuration (e.g. that all the configuration types listed in greeters are different). I'll try to adjust your code to use the above layout when I get a chance. Thanks, Maxim [0] https://wiki.ubuntu.com/LightDM