From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 22 02:09:55 2022 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: Subject: Re: Guix Home generated .profile sets XDG_ vars that break GDM+Gnome login on foreign distros From: Liliana Marie Prikler To: 59474@debbugs.gnu.org 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-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -0.4 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59474 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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