From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kHKaIaM9GWd6AQAAe85BDQ:P1 (envelope-from ) for ; Wed, 23 Oct 2024 18:17:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kHKaIaM9GWd6AQAAe85BDQ (envelope-from ) for ; Wed, 23 Oct 2024 20:17:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Jp9x+AF3; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YMsV1R6K; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729707427; 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=IubwcXjfVxdEOgISQdZxZrgEiLzZd5Fr+LPMMJxUo1Y=; b=WE+frbte1Ww6sYrEYoFcW2Hnc5R9bw1A+DjM4/k15vXOD2fAQo+wtIfALZd+BrBSAOK+ih brQxFAaOghDc065KjekigLre0KLkVjP/bFtq/Qe7tPuTig/ZUQTWhVBvqS3C3SrA9u/1W/ XxvIxNten4hkZs7X3Inoi3xwOxXoMOUrwSOySGsCVxJ/VBj9bv1KRsCMAsO9x4/98VnB+4 boEaB7hbJoRZMudbJNedL/wgTVn0uPsYSLVLzK6zQ7rTIt28DgVJ9WpUETu/Ip95KxsN33 DG8l5793/0dO2N3alVYtBj7qaUqIg68TdVwa3ozDFH0xiKGaYkrU7BfyjDfwDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729707427; a=rsa-sha256; cv=none; b=TZ9odpNBhKrP+t2e9zaGcC3ZseONtvuau2k01N7e/yJbGl9+1l3R4DCVEZ4dfgS+JH7OJB H2kSTQMU67nagdWU4N7g7X7Y2GGq5TBbofgrAdu/DpNFOPpFjppIiqX5vQXa+rfTuFPx06 AiPf/hICpJuKaZOnDJvkJvCZUSLioLJWvGvj9lZMnobBmIkZZx0s0sVlJn+v9yHwxRNkK+ 1bOddirowDK6gElBAlm6ljKb5LcqXMPoKNbXLmeXZBgNbWjLeB09IDGWwi3xK/PdszoHvW PTU74rwU8VBs4/g5/R3HXRVicgcfptSvLCC1NtLSxR/n01vUwKwUTFvCF+tqvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Jp9x+AF3; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YMsV1R6K; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) 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 5EE455BF23 for ; Wed, 23 Oct 2024 20:17:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3fuP-0007Sg-Ql; Wed, 23 Oct 2024 14:16:39 -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 1t3fuM-0007SU-4c for bug-guix@gnu.org; Wed, 23 Oct 2024 14:16:34 -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 1t3fuK-000665-AD for bug-guix@gnu.org; Wed, 23 Oct 2024 14:16:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=IubwcXjfVxdEOgISQdZxZrgEiLzZd5Fr+LPMMJxUo1Y=; b=Jp9x+AF3op955LyRu9NmDMhwCRiXGJcRxlkccGQnEBrM5mvSoMDULtI8R2Fh9N4ssdsIAMHypPMQkRq+vz4sIR3LEgtK3KOXTvTX4+GQckNiaEXprXYKkh5GtglpALCTARIps9q4qDjqXj9U8iYkhZzWdBmFjpkXdO80mc+mHL4dufjlDT3+ezf5I3gd5+F1+hn/biGB+FVqzfCHmszVzBqEbHSoVhyczhU6TGCQB+OV2B0WmtXPhIufMwAHfD61uRhpX2XQtFXjx7qgQAZnkFRSQnaRv0lbKW0Pq6urMhxbi880NPXlxjjODQSPYrYwoHcOnEwuvuuUXIs88uho2w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3fun-0000gb-Jq for bug-guix@gnu.org; Wed, 23 Oct 2024 14:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73859: lightdm-service-type is almost unusable Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Oct 2024 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73859 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 73859@debbugs.gnu.org Received: via spool by 73859-submit@debbugs.gnu.org id=B73859.17297073642548 (code B ref 73859); Wed, 23 Oct 2024 18:17:01 +0000 Received: (at 73859) by debbugs.gnu.org; 23 Oct 2024 18:16:04 +0000 Received: from localhost ([127.0.0.1]:60746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3ftr-0000f0-6v for submit@debbugs.gnu.org; Wed, 23 Oct 2024 14:16:03 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3fto-0000eQ-96 for 73859@debbugs.gnu.org; Wed, 23 Oct 2024 14:16:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2BC01240101 for <73859@debbugs.gnu.org>; Wed, 23 Oct 2024 20:15:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729707323; bh=BUo16HQc8RfucJrioLmAzHhmh/9H3wq6FEnevh/WZKM=; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:Cc:From: From; b=YMsV1R6Kr9UTGUeNUzFTElykuoAuaQ5jp4Q50cONa1epSZjB+VBWVKA5KXIaqHidO m+VVXTyk/I4ekeoWTm56gaFtVugsNSnDiNnJMAdptmDW+eF0gDAXZD0Mb8eruDQba6 +op0u3L2f0ycbW/PvgCxQwaSqU0leb0nXH9ZQcr8NNWgXz1AcMJsDKC238SQCKXBOK V/LornQbpLDJbPKI4eriJLR+DC+b6VQpUHs/loIInqLyoeJTOqWEkL9fE4e/qnH0Fd QR4AROIiO4RqrfPpcfR5yhsiFiQSiCx+Tya2uvOKkMHOkqajf4ZQygyswVBczLPXmv X1tcLVaCp/60A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XYcfK6G5hz9rxL; Wed, 23 Oct 2024 20:15:21 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------vYKB1Ymra8UdPNg62iS4O1mq" Message-ID: <7f748427-5276-40e9-b44a-56e9bc445ec3@posteo.net> Date: Wed, 23 Oct 2024 18:15:19 +0000 MIME-Version: 1.0 References: <8fe9bf90-158c-4e03-a257-6ebf9da5ad54@posteo.net> <87ldyezxgm.fsf@gmail.com> Content-Language: en-US From: Dariqq In-Reply-To: <87ldyezxgm.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.13 X-Spam-Score: 1.13 X-Migadu-Queue-Id: 5EE455BF23 X-Migadu-Scanner: mx13.migadu.com X-TUID: XJpNrbX4jq51 This is a multi-part message in MIME format. --------------vYKB1Ymra8UdPNg62iS4O1mq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Maxim On 23.10.24 16:48, Maxim Cournoyer wrote: > Hi Dariqq, > > Dariqq writes: > >> Hi Guix, >> >> This is to report some of the issues and workarounds when trying to >> setup lightdm-service-type. > > Thank you for taking the time to report these detailed findings! > >> >> 1. Unable to choose a session (https://issues.guix.gnu.org/68055) >> >> This appearently never worked: https://issues.guix.gnu.org/57168#0 > > Indeed. This definitely makes the session manager much less useful. > I'd really like to find a solution to that; I think the issue is > reported upstream here: > https://github.com/Xubuntu/lightdm-gtk-greeter/issues/105. > > Just a hunch: perhaps something in the environment the greeter > runs is missing to have d-bus communication properly working? > Found all these while trying to switch from xfce to mate on a 32 bit machine (plus skipping some tests in mates dependency tree to get it to build) and spent way to much time trying to understand how to change the default session. Remotivated by your response I looked into how the greeter actually finds the session: 1. The menu just calls out to lightdm_get_sessions https://github.com/Xubuntu/lightdm-gtk-greeter/blob/master/src/lightdm-gtk-greeter.c#L3186 2. This eventually reaches update_sessions https://github.com/canonical/lightdm/blob/main/liblightdm-gobject/session.c#L181 Could it just be that it is using the "wrong" values for the session dir and not the ones we specified in the lightdm config? From what config files (if any) are we reading here? If this is indeed the issue can we set sysconfdir to /etc and let it read the lightdm config file from /etc/lightdm/lightdm.conf (via config_load_from_standard_locations)? I tried something like this (diff attached) and seems to work. I was able to choose between xfce and mate and log into either of them. (only slightly awkward thing is that wed need to overwrite sysconfdir for 'make install' and should probably rename the lightdm-configuration->greeters-config-dir function). >> This means one currently has to specify the default session with >> something like >> >> (service lightdm-service-type >> (lightdm-configuration >> (seats >> (list >> (lightdm-seat-configuration >> (name "*") >> (user-session "xfce")))))) >> > > [...] > >> This might be fixed by making the lightdm-activiation snippet actually >> useful: It currently searches for a file named "directory" to fix >> permissions rather than the content of the variable 'directory'. >> >> (find-files "directory" #:directories? #t) vs >> (find-files directory #:directories? #t) >> >> here >> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/lightdm.scm#n527 > > Fixed. > >> 4. tigervnnc >> >> default tigervnc is (file-append tigervnc-server "bin/Xvnc") rather >> than (file-append tigervnc-server "/bin/Xvnc") > > Also fixed (see commit e4e1e16bc1). > Thanks :) --------------vYKB1Ymra8UdPNg62iS4O1mq Content-Type: text/x-patch; charset=UTF-8; name="lightdm.diff" Content-Disposition: attachment; filename="lightdm.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2dudS9wYWNrYWdlcy9kaXNwbGF5LW1hbmFnZXJzLnNjbSBiL2dudS9w YWNrYWdlcy9kaXNwbGF5LW1hbmFnZXJzLnNjbQppbmRleCA1MTUyZWI2NDc5Li5iMjEwYjEx YmM2IDEwMDY0NAotLS0gYS9n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1rZXlzKQorICAgICAgICAg ICAgIChhcHBseSBpbnZva2UgIm1ha2UiICJpbnN0YWxsIiAoc3RyaW5nLWFwcGVuZCAic3lz Y29uZmRpcj0iICMkb3V0cHV0ICIvZXRjIikKKyAgICAgICAgICAgICAgICAgICAgbWFrZS1m bGFncykpKSkpKQogICAgIChpbnB1dHMKICAgICAgKGxpc3QgYXVkaXQKICAgICAgICAgICAg YmFzaC1taW5pbWFsICAgICAgICAgICAgICAgICA7Zm9yIGNyb3NzLWNvbXBpbGF0aW9uCmRp ZmYgLS1naXQgYS9nbnUvc2VydmljZXMvbGlnaHRkbS5zY20gYi9nbnUvc2VydmljZXMvbGln aHRkbS5zY20KaW5kZXggNzk4YzEwNjU2My4uOWRmZjI2Mzg1NCAxMDA2NDQKLS0tIGEvZ251 L3NlcnZpY2VzL2xpZ2h0ZG0uc2NtCisrKyBiL2dudS9zZXJ2aWNlcy9saWdodGRtLnNjbQpA QCAtNDAxLDEwICs0MDEsMTEgQEAgKGRlZmluZSAobGlnaHRkbS1jb25maWd1cmF0aW9uLT5n cmVldGVycy1jb25maWctZGlyIGNvbmZpZykKICAgIlJldHVybiBhIGRpcmVjdG9yeSBjb250 YWluaW5nIGFsbCB0aGUgc2VyaWFsaXplZCBncmVldGVyIGNvbmZpZ3VyYXRpb25zCiBmcm9t IENPTkZJRywgYSA8bGlnaHRkbS1jb25maWd1cmF0aW9uPiBvYmplY3QuIgogICAoZmlsZS11 bmlvbiAiZXRjLWxpZ2h0ZG0iCi0gICAgICAgICAgICAgIChhcHBlbmQtbWFwIChsYW1iZGEg KGcpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgYCgoLChncmVldGVyLWNvbmZpZ3Vy YXRpb24tPmNvbmYtbmFtZSBnKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwo Z3JlZXRlci1jb25maWd1cmF0aW9uLT5maWxlIGcpKSkpCi0gICAgICAgICAgICAgICAgICAg ICAgICAgIChsaWdodGRtLWNvbmZpZ3VyYXRpb24tZ3JlZXRlcnMgY29uZmlnKSkpKQorICAg ICAgICAgICAgICAoY29ucyBgKCJsaWdodGRtLmNvbmYiICwobGlnaHRkbS1jb25maWd1cmF0 aW9uLWZpbGUgY29uZmlnKSkKKyAgICAgICAgICAgICAgIChhcHBlbmQtbWFwIChsYW1iZGEg KGcpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGAoKCwoZ3JlZXRlci1jb25maWd1 cmF0aW9uLT5jb25mLW5hbWUgZykKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg LChncmVldGVyLWNvbmZpZ3VyYXRpb24tPmZpbGUgZykpKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgIChsaWdodGRtLWNvbmZpZ3VyYXRpb24tZ3JlZXRlcnMgY29uZmlnKSkpKSkK IAogKGRlZmluZSAobGlnaHRkbS1jb25maWd1cmF0aW9uLT5wYWNrYWdlcyBjb25maWcpCiAg ICJSZXR1cm4gYWxsIHRoZSBncmVldGVyIHBhY2thZ2VzIGFuZCB0aGVpciBhc3NldHMgZGVm aW5lZCBpbiBDT05GSUcsIGEK --------------vYKB1Ymra8UdPNg62iS4O1mq--