From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +JthBfOy72FLWQEAgWs5BA (envelope-from ) for ; Tue, 25 Jan 2022 09:21:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EIntN/Ky72GwSAEAG6o9tA (envelope-from ) for ; Tue, 25 Jan 2022 09:21:06 +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 981D017CB3 for ; Tue, 25 Jan 2022 09:21:06 +0100 (CET) Received: from localhost ([::1]:46810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCH4b-00055S-9t for larch@yhetil.org; Tue, 25 Jan 2022 03:21:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCGAf-0004jZ-Nz for bug-guix@gnu.org; Tue, 25 Jan 2022 02:23:40 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCGAQ-00027L-85 for bug-guix@gnu.org; Tue, 25 Jan 2022 02:23:17 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCGAQ-0004vs-34 for bug-guix@gnu.org; Tue, 25 Jan 2022 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53514: Guix should not set global variables that may affect host Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Jan 2022 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53514 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer , 53514@debbugs.gnu.org Received: via spool by 53514-submit@debbugs.gnu.org id=B53514.164309532618879 (code B ref 53514); Tue, 25 Jan 2022 07:23:02 +0000 Received: (at 53514) by debbugs.gnu.org; 25 Jan 2022 07:22:06 +0000 Received: from localhost ([127.0.0.1]:46761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCG9V-0004uR-Rk for submit@debbugs.gnu.org; Tue, 25 Jan 2022 02:22:06 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:32979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCG9T-0004u5-EQ for 53514@debbugs.gnu.org; Tue, 25 Jan 2022 02:22:04 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4JjdZw1FVBz3xYv; Tue, 25 Jan 2022 08:22:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1643095320; bh=+PE2gPu8oWCXI9ClfgVyKLyuOQTccgNZcyYnLl9QKNc=; h=Subject:From:To:Date:In-Reply-To:References; b=DmaOMNOnMwvts9DHVRTnx/HT5iiQaXaQhlsHv+9nvsJs1VI32BmnMH39nMyRF/HjH PBM26x8w/iwY2moXJLxzgfjdkrmzp2mv6AOEzawsn+61wpJrkfUaGRKX2zWEdcfAC2 WuUyMzejjWwPjGMkzNp0xIh8Mn4Q9LIAUvBvRZaU= Message-ID: From: Liliana Marie Prikler Date: Tue, 25 Jan 2022 08:21:59 +0100 In-Reply-To: <87zgnk4vs2.fsf@gmail.com> References: <87zgnk4vs2.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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" 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=1643098866; 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=+PE2gPu8oWCXI9ClfgVyKLyuOQTccgNZcyYnLl9QKNc=; b=aj1OrcL083x5RTuCJmlYShynbdFGFOy/pl+Bq4c7yiVOVNgFlKcMVJDNL2ik+pQ17nIlFz H9ZGqNvUuMO5/rXjdihpAjepZHdLKlXj7+gmwwKc7KElUOh1qwsefmgfnK21mAFNmOz+Dv t8c1Xmp7wMyaofF3V6EVuhWUsLPE2J3P5fV3UdN4YglVgbhLXImVDL6/cjnbZWC+7lYV/S B8qyNBtdPYTCYwgmUmZUIKn1SA37ES689wVd28xN90HoUHy/q4/B/4tLweKNov9SWVZyeE RcSjOPhGmEVO/MLu+S88yDoL3mpwtva3q75MLlw7rcpv2N7VHXABBv2X73Kiuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643098866; a=rsa-sha256; cv=none; b=ACqcEfDLSYdQBcQnnBZabTh/gs43v1/S90/rFaWeWBrpMy/YVwfpVywVPpFj7ZyCmN4gwx LEYiXlZzNyHB5u8ECHUIEwTzTLXtDGRHyxj30MArttyoE+d48nu7f6ppAZrrlSp0fXQAcS NdDYwbMgZQG0GbdN22XpVKGriNn8rUUUjHu/mjZlSej6ISCTtgaoFnkrLq4WyF+dqmRofs 7zLoeTh+pgnbspEW9mveqp2TG2rtWhZloqe9P/RFrX/buMTD8dMREtqnUtQg1tQ5H/33bC 0bV5AQ6/x5RNx8E+jrvmGBly9rPEbXQOu/SbFo44Gzp4+f9R3k87hTTSyy1ZAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=DmaOMNOn; 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: -2.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=DmaOMNOn; 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: 981D017CB3 X-Spam-Score: -2.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: KKyFwkgOh36H Hi, Am Montag, dem 24.01.2022 um 17:24 -0500 schrieb Maxim Cournoyer: > Hello! > > There are multiple reports about the negative effects of Guix setting > variables such as XDG_DATA_DIRS on foreign distributions, that may > cause problems a severe as locking users out of their graphical > session [0]. > > In my opinion, we should pursue patching every application/library to > use a Guix-specific variant, e.g. GUIX_XDG_DATA_DIRS instead of > XDG_DATA_DIRS, to avoid interfering with the host system, as was done > for GUIX_PYTHONPATH. > > This is a big task in itself; we can open more focused/actionable > tasks for each environment variable, starting with those causing the > most serious issues. > > Any takers? I'm not convinced that patching XDG_DATA_DIRS is a good solution here. Even if we go forward and implement this for each and every library/application, (it would be reasonably simple to do so for glib and qt at least, but there's many more consumers, including Guix itself), we'd just force users on foreign distros to set up their XDG_DATA_DIRS for us if they e.g. want to have desktop icons available, so they'd quickly encounter the same issue on their own. I see two ways forward for this: First, "ignore it" and just document the behaviour. This isn't just a bug Guix is suffering from, it also affects other third-party package installers like Flatpak and Snap. Since distros increasingly become aware of them, this will soon no longer be an issue for most our users. Second, extend search-paths with a way of enforcing a default value when none is set. This way, Guix will still override XDG_DATA_DIRS, but since $HOME/.local/share:/usr/share is set as the default as per spec, it will do what the distro expected. WDYT?