From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GBH9MwN2fGPN9gAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 08:10:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MDjhMwN2fGNo6wAAauVa8A (envelope-from ) for ; Tue, 22 Nov 2022 08:10:59 +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 8A605E52F for ; Tue, 22 Nov 2022 08:10:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxNQQ-000305-9e; Tue, 22 Nov 2022 02:10:34 -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 1oxNQJ-0002yB-6N for bug-guix@gnu.org; Tue, 22 Nov 2022 02:10:27 -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 1oxNPv-00082d-0X for bug-guix@gnu.org; Tue, 22 Nov 2022 02:10:25 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxNPu-0007CZ-EH for bug-guix@gnu.org; Tue, 22 Nov 2022 02:10: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: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Nov 2022 07:10:02 +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: 59474@debbugs.gnu.org Received: via spool by 59474-submit@debbugs.gnu.org id=B59474.166910099527665 (code B ref 59474); Tue, 22 Nov 2022 07:10:02 +0000 Received: (at 59474) by debbugs.gnu.org; 22 Nov 2022 07:09:55 +0000 Received: from localhost ([127.0.0.1]:49521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxNPn-0007C9-3z for submit@debbugs.gnu.org; Tue, 22 Nov 2022 02:09:55 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:19158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxNPk-0007Bw-E7 for 59474@debbugs.gnu.org; Tue, 22 Nov 2022 02:09:53 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4NGb3w4TY4z1LZ3L for <59474@debbugs.gnu.org>; Tue, 22 Nov 2022 08:09:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4NGb3w4TY4z1LZ3L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1669100988; bh=+Mg9TBzKn01pm44Q2eqXtlcZWf8JRtnG8srWiYdDMM8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=LLIxihvm7uIvPR3uo4vkW0sG4HoUq8cF7c7ZxldeFcyfRTTnxOTNha1dl1OJ0hBQ+ c7Htcf3hrSKPBkOujzMw8kOIM6Ke3/QiYzD15FjKZtXRXYqi3jyj6ebfVtFqG89T5f ASHMA5ZJCBVFE0YufpP5jhlRcwzWrec1OHcYLZ7Y= Message-ID: From: Liliana Marie Prikler Date: Tue, 22 Nov 2022 08:09:47 +0100 In-Reply-To: <87fsebbk80.fsf@rfc20.org> References: <87fsebbk80.fsf@rfc20.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669101059; 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: content-transfer-encoding:content-transfer-encoding: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=+Mg9TBzKn01pm44Q2eqXtlcZWf8JRtnG8srWiYdDMM8=; b=IX/WEyUED6hQySczaXlzgT8BRkwqRJG8iaSp5wuewSCKnk8FCo3Y8N9WoJoWxHLK/oDA8j yi/qhF7LSiQ9GOqqLNsH4fsnNCalFVr3+quntvlihC0q4lByYS1RcfxraIFaZdR6kZi4cU lrqvvnQll90q8M+AZfAw5npg6THS8g/pFxJWADVlYAQMbgQAwjeWLCTAupMoYF4cMLikUG z+bN45WERTTPdW3+nkXSOrmC6KM9Bvk6M7Pjza8jlTmcTTUCPfnVBYws+BE4Y7ussa0tvQ zhG+jsk44vBq8NebCd7EbqmNBo1sKg5HpoEKHDu+/6TnC0sO8uJJjMXpEUAR9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669101059; a=rsa-sha256; cv=none; b=m7eC9WnXJ+Q5yzsYA/y7SSfwZTWuS+tL9II94bEx9xn+Y1ECJzafV5EmENqu9rlx532Ro0 HoeU1BDRWOU53GC8tHKcNxfy4gwaW/A3/e6M3DkRglk1jYyu5LSVtQ1xopzR8xhJEab7Av n3bpYsQ9Wkuvyzoa6r6ucKFXOeptTpQ5c0CseQzPbQioFylKjOoYieL0Q0fuNzBDvFRrvE Orf9LDAfyKUft8+5HJEtYmrX4DQSDzJAqNris92/MZW+E+OpSTOzk6UkmuX3MOx1w61K3r viVf7hhQnWCCX2waKkBOY2KZY2hVT4kng4HrgxGYX2CAuOIDymUHV9cP6FuOrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=LLIxihvm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); 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" X-Migadu-Spam-Score: 5.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=LLIxihvm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=none); 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" X-Migadu-Queue-Id: 8A605E52F X-Spam-Score: 5.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: l4uZBgzK1BPj 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 value= s > 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]. > 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 log= s > 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. > 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. > 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=3D23aafc800c9e67866276= 6440916449ec5bbce830