From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id APP2LkYMmGPePgEAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 06:23:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CBv+LkYMmGPN7wAA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 06:23:18 +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 6A37B15162 for ; Tue, 13 Dec 2022 06:23:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4xku-0002Vs-LT; Tue, 13 Dec 2022 00:23: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 1p4xks-0002VU-Lw for bug-guix@gnu.org; Tue, 13 Dec 2022 00:23:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4xks-0007zn-Dd for bug-guix@gnu.org; Tue, 13 Dec 2022 00:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4xks-0005Fw-0Z for bug-guix@gnu.org; Tue, 13 Dec 2022 00:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59474: Guix Home generated .profile sets XDG_ vars that break GDM+Gnome login on foreign distros Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 13 Dec 2022 05:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59474 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler , 59474@debbugs.gnu.org Received: via spool by 59474-submit@debbugs.gnu.org id=B59474.167090894320178 (code B ref 59474); Tue, 13 Dec 2022 05:23:01 +0000 Received: (at 59474) by debbugs.gnu.org; 13 Dec 2022 05:22:23 +0000 Received: from localhost ([127.0.0.1]:57959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4xkE-0005FO-PX for submit@debbugs.gnu.org; Tue, 13 Dec 2022 00:22:23 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4xkB-0005F5-U0 for 59474@debbugs.gnu.org; Tue, 13 Dec 2022 00:22:21 -0500 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id D6EADFF805; Tue, 13 Dec 2022 05:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1670908933; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gvZ11GlABeTDkpkqWTEy4xFDtCQYehZcyeHsv7r9dQk=; b=nurzzDnKkXGj/f4GNOF8EkUJxIr9r+nfuwtB0dP7n9J7434vx71k/Ubj97abovbKoxkakl wP5J2iVgLWJyJoP33MyQUrzADPKKCsi12KBvpxqUjQopL/xRlhM0NK786Z9biJB1c3QhFA 7GgJMkR1fQpvy3iUNIL0P1f1BKXWs01RmPWuC4pU/kbBBjXa6TDXC9IrqjTIIA4lNrxVpg rz0vLRYTaBYcFsCpP5I+mIQya5ZuelcqVQZUtYHCaPf1Oq12XL5YRbl6xbQLGWBpkdX5VT Ikf3thSxJaPkDa0NsdIqYzxNTKWT/JhbidbXhEQx0u5LpsnhCvqhYih/ESlX4Q== From: Andrew Tropin In-Reply-To: References: <87fsebbk80.fsf@rfc20.org> Date: Tue, 13 Dec 2022 09:22:07 +0400 Message-ID: <878rjbaneo.fsf@trop.in> 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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670908998; h=from:from:sender:sender: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=gvZ11GlABeTDkpkqWTEy4xFDtCQYehZcyeHsv7r9dQk=; b=EtrRMyUXxZyhGRhiaZHC1KYC6kV8CvvBGQzr67X8TV6VmOa2UiUb9eH7nWNwSpOq/MhWuT zJRrP/yxdXPPm5iPE4xoREfJ0uzZCAxeufM1GryjJjO5vSYfrR8quGGuopUCAs6Eo3Qx1m geX+Z26DcZmf7/Ti1U9BFE9CHwdIUKxnKSTCGc2uBJ+I+ulmucZUmx4xYOnYolrdLxwkji Mq+TpWOXdb++1DveBBlIvok8NPLweRJQOK4KPq6w+tesPk51vdMznX/whwMakEFHcJBNvC zwUs5vc8lf3pGXpIAylf/oLbDlp49/RC8o71UxgESDG4hRbRWZQyVSzLrbVVsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=nurzzDnK; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670908998; a=rsa-sha256; cv=none; b=EgLIwuc4FUguQ2NxI+fy/FmE06E+sfBMqk4lCV5q8tWlRReK97Njm02X2lh6V7bc3nJ1l3 vfkxm3+u//4XdMsurdg2aNBBYOIkp9NJrvVrehl+xPrdXKA7kj3zS9gC2Ggt/xfZeQsfkP 7awe4rtDgffIAky5vh4exIyjBgl/l50qhvUIYCQl5FyF4Xbhgjn/AzVthQbjt9njyZH88y AUUfE9f9TJhQm7K50vgCethPVmCrEsxlIcynnrASioWoNxqRx0SUklcYzx9YzhCEM4NqRS sUOxdRNAjwAB1c+vq3iuBX4Ql3K+zkPxcyEXXeMn0hxaQwMVlEcW2fxL5c85Yg== X-Migadu-Spam-Score: -2.66 X-Spam-Score: -2.66 X-Migadu-Queue-Id: 6A37B15162 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=nurzzDnK; 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=none X-TUID: tc+NOv80pAad --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-11-22 08:09, Liliana Marie Prikler wrote: > Am Montag, dem 21.11.2022 um 22:02 -0800 schrieb Matt Armstrong: >> The first thing I see is that $HOME/.guix-home/seutp-environment is >> modifying various XDG_ variables incorrectly.=C2=A0 It prepends new valu= es >> without honor the variable's default value if it doesn't happen to be >> set already. > This is a known problem with Debian. Unlike Ubuntu, which relies on > Flatpak and Snaps for its basic operations, Debian doesn't and hence > hasn't set up these variables explicitly. Note that this isn't unique > to Guix Home or even just Guix. > >> For example, if XDG_DATA_DIRS is not set its default value is >> "/usr/local/share/:/usr/share/". > None of these directories exist in Guix System. Assuming them would be > a fault. Note that the install script you're meant to use already > initializes these variables since July [1]. > I understand the inconvinience, but not sure that it has to be fixed on Guix Home side. According to the specification it's a fallback value not a default value. =2D-8<---------------cut here---------------start------------->8--- If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used. =2D-8<---------------cut here---------------end--------------->8--- XDG_DATA_DIRS is not empty in our case and hence /usr/local/share and /usr/share doesn't have to be used. If it's critical for operation it should be set before ~/.guix-home/setup-environment called, I would say it looks like a debian bug, not Guix Home. They same thing is true for XDG_CONFIG_DIRS. >> XDG_STATE_HOME is set to a non-standard value.=C2=A0 In the current XDG >> Base Directory Specification it defaults to "$HOME/.local/state", but >> Guix Home sets it to "$HOME/.local/var/lib". > This is a genuine bug with Guix Home. > >> XDG_LOG_HOME is a non-standard variable.=C2=A0 The spec suggests that lo= gs >> should go in XDG_STATE_HOME.=C2=A0 Why not a establish a GUIX_LOG_HOME >> variable instead?=C2=A0 (if it ever does become a standard XDG variable, >> its default may not be the same one picked by Guix Home, causing the >> same issue as above). > Another genuine bug with Guix Home, although the variable does predate > our support for XDG_STATE_HOME. I suggest finding all uses of this > variable in Guix Home and replacing them accordingly. > XDG_STATE_HOME and XDG_LOG_HOME apppeared in Guix Home before they were described in xdg base directory specification, so the values was picked to mimic FHS. Probably they should be adjusted to the values defined in specification. >> Setting XDG_RUNTIME_DIR is not something I would expect Guix Home to >> do -- it is the job of whatever logs the user in. > I'm unsure about that one. > If it's set by elogind or whatever - cool, we will use value provided, if not we explicitly set it, looks ok to me. >> XDG_CACHE_HOME, XDG_CONFIG_HOME, XDG_DATA_HOME are set to their >> defaults unnecessarily. > Explicit is better than implicit. > > Cheers > > > [1] > http://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D23aafc800c9e678662= 766440916449ec5bbce830 > > > > =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmOYC/8ACgkQIgjSCVjB 3rAfLRAAgk8UL7/20et2ctJwBgb8ZHdwj6S4tcxseQWr7n8svOVQbIhsubNp9YFz mPHIcfU/FlfsgPbR8dA8A8jYt1qmbkj1qEUKw49bJgM8TfUnAU9SvtimgTkmnKmX sPDPAIqKssbUxj2iTBABlHrZ+S1ngkeLP27FZSf3a0EiU5u9AgQwCh7yYeQeEB96 mPROypN6IGEPbk0gaKV1O1JXG4VPDJNQnVIB4aJXIgth47Oey2WEESh/c0zOQL7G 7GTURcwnYZYKvm1r4X6lFTRAP6OgR1Io802GMso4rtsX0Skj8U1k6RkX9g/aHeEK PWyTEREwbsuEMPhnLbmuvgswYRLKRJlv0eNDajmKWScF1rjHOCmoIvXUfbEQ8r1m 72Bu95sJNovnAFBkIVe3tXfJuitQ+UFfJBhe7SRyucTdcjKW5Nlgn010EQaLfaF2 c2Yf1SN3tg64ho6+KxIEzLLkOoGQ8pM/EgNTv1vbsdgdq6T6k7XqoOTNf3eo8EZw GwiZQHhb9jxlfczwB5BKcturMJzg0mI5GWymqDcZOO/NIpsGX0B+/IfNNkGzRlnE k7LHgBELEDsBSHaCtkktrxFZP6Ix0Z0ggC/yYsWp440R5+QVXKq26tF0Kb9M8qJz 09+8uIuliZKKgGcrS+SehXjHfoTYGTQTMUYz7MNBxvfaZgP5B9A= =r30T -----END PGP SIGNATURE----- --=-=-=--