From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8NyMGc6E8GEjHgEAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 00:16:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6Io5Es6E8GH4pAAAG6o9tA (envelope-from ) for ; Wed, 26 Jan 2022 00:16:30 +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 F098917A01 for ; Wed, 26 Jan 2022 00:16:29 +0100 (CET) Received: from localhost ([::1]:49846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCV36-0006XY-OK for larch@yhetil.org; Tue, 25 Jan 2022 18:16:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCV1j-0006XP-4E for bug-guix@gnu.org; Tue, 25 Jan 2022 18:15:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCV1i-0006HN-EM for bug-guix@gnu.org; Tue, 25 Jan 2022 18:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCV1h-0005lW-Si for bug-guix@gnu.org; Tue, 25 Jan 2022 18:15:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53514: Guix should not set global variables that may affect host Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Jan 2022 23:15:01 +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: Liliana Marie Prikler Received: via spool by 53514-submit@debbugs.gnu.org id=B53514.164315246822099 (code B ref 53514); Tue, 25 Jan 2022 23:15:01 +0000 Received: (at 53514) by debbugs.gnu.org; 25 Jan 2022 23:14:28 +0000 Received: from localhost ([127.0.0.1]:50480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCV1A-0005kN-1D for submit@debbugs.gnu.org; Tue, 25 Jan 2022 18:14:28 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]:37728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCV18-0005kA-QK for 53514@debbugs.gnu.org; Tue, 25 Jan 2022 18:14:27 -0500 Received: by mail-qk1-f172.google.com with SMTP id 71so10454178qkf.4 for <53514@debbugs.gnu.org>; Tue, 25 Jan 2022 15:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=vq3dNVde1RT7iJx1g6W/LNFAW93vX2j+08H7YOXYLo4=; b=jSyMF6FNxqo2K8j9SjS/S9tK2OWhj5MXCNDLtquljc+vbdE96JJJY//ITa3LicjQ5e i59grt56o37YwhxST63ZZkCJv0l0tgd5IO0vu5niXwn9wMgSja2LKOwvvEvBqQ++RPfq nasADAj/ziU/3DEktuovuYN/d9BTeYWFgKCrKXiSqIcqaBgClOjm4AStdli/qa6LAcYs CD8tn8xKb9ENAH0GKB+jK9LWKLmTbgb96ThteIoNhDCFCTrgzAmSVjZfN4L58qGb8KVT M3piWM9CW8YP3UZRrpUYOyayG/ziOpMoMfZeNY/cMgxopw4perpbWYaO94P5NQnrf/rj OJ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vq3dNVde1RT7iJx1g6W/LNFAW93vX2j+08H7YOXYLo4=; b=I8sNXQq4ULv+cA0MG8ysP5RA6Ojl0d3EkrrdxuxI0qCIhGEp/LK2qjY2VowPLS0Z7f 4p1MHH4ty3wk+WdLwiAjvOoRa7NFgqMyHb67eYNWlH31qOba08/t2ZYCh8NO9iYUEuKr WaJS/IsDMimZX/zuzMWzx3YtcerjZd7Z+ckNtNVj5ucH3wrhJQzPPU5hyr8sHqQ8bFZF E7RpmYlTM4cn6UkgZsg9zUTI5EYlwjqGXwBK0MeZQn/kon+RgkpV1xu0I6+bfOVHa0Pq 72HON37MSVVzAgsk2xZHDzH/5M1U0oq+hlte63qQ5jIw4zX6ujt0XRbmpx9zHYhsFkPt avpQ== X-Gm-Message-State: AOAM532KDo4LOufty4oDZMHmuVlNluPEnG5T+BjNmJz5YEZSIyVyQXpd 16/8KjX7ISnvm8GgbbnBFO+ZT7/l5dU= X-Google-Smtp-Source: ABdhPJyI7cOkEzuABKisej75yb9T3opWPIT+P7Wq4rFdp2zhbCQ6vyb1tOwNt1nZLi2wohui54rGXQ== X-Received: by 2002:a05:620a:2848:: with SMTP id h8mr16937235qkp.610.1643152461130; Tue, 25 Jan 2022 15:14:21 -0800 (PST) Received: from hurd (dsl-10-136-58.b2b2c.ca. [72.10.136.58]) by smtp.gmail.com with ESMTPSA id g7sm2675257qkc.104.2022.01.25.15.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 15:14:20 -0800 (PST) From: Maxim Cournoyer References: <87zgnk4vs2.fsf@gmail.com> Date: Tue, 25 Jan 2022 18:14:19 -0500 In-Reply-To: (Liliana Marie Prikler's message of "Tue, 25 Jan 2022 08:21:59 +0100") Message-ID: <87a6fj4ddg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: 53514@debbugs.gnu.org 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=1643152590; 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: 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=vq3dNVde1RT7iJx1g6W/LNFAW93vX2j+08H7YOXYLo4=; b=Y/VTC+Q7KhYN6BaNCV3weOJs+MvFByOGVC6DurBYMO4i3B3NKRoaCNCZOQD0PDtNEu6DXA qEGjholnvLymYQAIvcHBfDGV+niQyFeoqdBW3V/51n4zBXz8YCij/mk+PbpWeMsm3WRD/c JBgZcUPvHTRKRRKSW0TlRGYGpYdeVz+/0CwTUYaAv6hTDkUk3V/W4q26dxvawaupbODBrX rGIJ6576pbkCvlGB96RPKKnTa/4QQMX/oKOx3zDuMdBiyj5Vhd4bC4LPX+klBJY+2j4mFJ wUYJLz5+mbvAAypsx/vfIut/bNNBuXpWJ8q38sREzOoEPlB6h9JE5N5wnTC6cA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643152590; a=rsa-sha256; cv=none; b=OxnsqVYlS0f9R28loKEwYuYxN7Qgew03Nenro/rzNXqjzlNFhdjGk3TalJoHfPpiTi5Tg8 WDa6YmSB2sgGFWusDjKljBhxAg9PwPPIDwNW5Ifa7mNpQ1oCsbXGYeJXFI3clXchpHNU3B eAbEiqzpmVRXS9CqGgXO3p/UUaP3mvE6q66MPC/O1X3R/tpCdaUeHRW5MLGEu6D1k/2TJE uUdVSAkzrbNaJ898W65NtCuYpbV68J5+zr1o80OarIR8uiOe1zn1TduJi9nRKhs8pZq6ni ZOlYEC2sx6ytYQkzKmZHqJ7HEXfB46gCNnTCE2d86Q0o9P+MpScQ8tLo7JW6cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jSyMF6FN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jSyMF6FN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: F098917A01 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: qLtIGjTCqebD Hi Liliana, Liliana Marie Prikler writes: > Hi, > > Am Montag, dem 24.01.2022 um 17:24 -0500 schrieb Maxim Cournoyer: >> Hello! >>=20 >> 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]. >>=20 >> 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. >>=20 >> 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. >>=20 >> 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. They may end up doing so, but at least they wouldn't be locked out of their graphical session just for installing a package from Guix, which is a clear improvement over the current situation. > I see two ways forward for this: First,=C2=A0"ignore it" and just docume= nt > 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. That sounds good to, and should be easier to achieve. Thanks, Maxim