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 ms0.migadu.com with LMTPS id EN22KXsl8mGH5wAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 05:54:19 +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 wOJoJnsl8mE8wgAAauVa8A (envelope-from ) for ; Thu, 27 Jan 2022 05:54:19 +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 36F2134FC0 for ; Thu, 27 Jan 2022 05:54:19 +0100 (CET) Received: from localhost ([::1]:42828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCwnZ-0004xc-V2 for larch@yhetil.org; Wed, 26 Jan 2022 23:54:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCwnK-0004xQ-Vp for guix-patches@gnu.org; Wed, 26 Jan 2022 23:54:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCwnK-0000JN-LR for guix-patches@gnu.org; Wed, 26 Jan 2022 23:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCwnK-0001hN-GI for guix-patches@gnu.org; Wed, 26 Jan 2022 23:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53447] Introducing =?UTF-8?Q?=E2=80=98GUIX=5F=E2=80=99-prefixed?= environment variables Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Jan 2022 04:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53447 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 53447@debbugs.gnu.org Received: via spool by 53447-submit@debbugs.gnu.org id=B53447.16432591926467 (code B ref 53447); Thu, 27 Jan 2022 04:54:02 +0000 Received: (at 53447) by debbugs.gnu.org; 27 Jan 2022 04:53:12 +0000 Received: from localhost ([127.0.0.1]:54051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCwmW-0001gE-3b for submit@debbugs.gnu.org; Wed, 26 Jan 2022 23:53:12 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:37431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCwmU-0001g2-1E for 53447@debbugs.gnu.org; Wed, 26 Jan 2022 23:53:10 -0500 Received: by mail-qk1-f182.google.com with SMTP id 71so1629123qkf.4 for <53447@debbugs.gnu.org>; Wed, 26 Jan 2022 20:53:09 -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=PrtVxj8Gtlg/cpJTAkpVZ4HHJCuE0n2tStmoysypVHo=; b=CvveszUlKnjTxmQ35wQdTUghOhptFaCjOGrDvPa+PCkx8Rz/YCpjWXxM/L3u538bTD X/Syx/QUPSLDhn6BxR3Oa6AOakIz7SnZ1msEDB8Ebsew5+W/JV6X07KFeuJ2MbbZJAgo peH7EKqXv2uqk6BVcE3xlqm7D9k7UYHgvuB1kBphe9I0qW4/EEBqVeGfu03LhIE9XHQW R6uQOciieOTt/R0IFK+OlCmTd/8CoNtEekLYYMdDsxzcwP6V3KUgM+rYfyNW6IHztK0R 6rmh1ZHCPyimZC/kEMrtB8AoNMZufSQ6mxM+7Dfgi26UwexMnCzUJ8qmxcIG+maZyCuc KnSw== 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=PrtVxj8Gtlg/cpJTAkpVZ4HHJCuE0n2tStmoysypVHo=; b=htVBBXe4U8MTC0PpkJHp4qN0nQ5yQSk4DOeblC3PHGkFqrbHJAkvbkdHabhMV2f5Iq 8moJYYQgpU7rHTkDmzvh8GVeVXmUUQNdUK43gkpBMMipta7ykEaY40gKOmyxY8gMc622 c+kXkmrr1Fp23u0Gpma3uofcFnqEqXnrj28YzZe3m5nXHzvAeQPvgC42vEKADND3z8nQ rsYFXPGFZ/9vBpyjF6Ry829qo1pxq5FA70yUWUEyYzYhmyHW3vEdzG+nxPjPMekrn5Fw QmJP46YKbtIkyzpT6WZTeACprw3Br/w/NGRlcM+1cwlqirUenhH/NBLlWptv1wJ+/Mdc QYjg== X-Gm-Message-State: AOAM532W9MzeOZWqKF8xEXcjTdNjDYVlZUf/NQrWZtfc2YcB/eQn7R1Y /7skyeDaNZRm2xhKWxRR6Ja7JZCRc04= X-Google-Smtp-Source: ABdhPJzXgbjrPHJGT3pPcbemhQ/A3D2WzPT356JeiC433OZJhmRt+194/1iV69OVxXZPTlsyUznq7g== X-Received: by 2002:a05:620a:d95:: with SMTP id q21mr1509797qkl.384.1643259184198; Wed, 26 Jan 2022 20:53:04 -0800 (PST) Received: from hurd (dsl-152-51.b2b2c.ca. [66.158.152.51]) by smtp.gmail.com with ESMTPSA id u9sm858234qko.110.2022.01.26.20.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 20:53:03 -0800 (PST) From: Maxim Cournoyer References: <875yqb21va.fsf@gnu.org> <19bb45159c0934e8d84035abdcfb00d8202233dd.camel@gmail.com> <87y2344vnv.fsf_-_@gmail.com> <87lez4lz96.fsf_-_@gnu.org> <87wnin2rae.fsf@gmail.com> <878rv2itxo.fsf@gnu.org> Date: Wed, 26 Jan 2022 23:53:02 -0500 In-Reply-To: (Liliana Marie Prikler's message of "Wed, 26 Jan 2022 21:03:05 +0100") Message-ID: <87k0el230x.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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1643259259; 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=PrtVxj8Gtlg/cpJTAkpVZ4HHJCuE0n2tStmoysypVHo=; b=f6QyA4ZP3JjuUR2Ogtgl1rXsb6bhdQkR8TWYobIm8uvC6lswQW3nUTS6f77PeBOUPAouNr Z8uCyekAI6X02WSGm7rp9PM4OYoOrM9IMTtPqjEBFihVf2lzQwLFzqPNnJ/sU1W/+cVf/j LvMpwVSEyjNspr/xCuujPa9hWuOUKDvHYfDd4fZj9Icn3RZ4LP4AAWrvHY3OBHyzKyaDsl P5mf0DSZfi+SsHFDyLvJI9O6YdSIsIFa9NEE93jFyX+Bv1z/Pq1BzXTTvPvcFmM7vqHBuc BlE/JL408VpYZpaWzCEQyR2rYNs1bHdJHnP4lkXjJP8GcU09iE5WwPC9uvP+XQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643259259; a=rsa-sha256; cv=none; b=EHbl84gVTa+gTwZ7uYjyYD5ZDkSwUEMmh8qmt4DTyNLPOuBbSk5YQCui7Ol9umb7ezMKly gVJumXgslZDr/8FUJZxthZfYPSnQJwKWsdP+8ve3oHZ0594ZLRgyNfcCXn8XzeDHB5Q4kj eZfYSl/TSoYFSJln7EeRDMIsgTkGvqsy8c+SUg0R7KLf9PmdJwfmjGtPSYzmvQiFuN6iaQ x1+taYcdtHLOE5L/5VPHgYpb1WCfjIA/NPGPwwhtZjfKTgZd8GbFf1aqgc6/PNYon1G2L9 ermht8SXPHuTuhCrbnMOJUctTCg2B4RlwpsGjxsyL/wHdfF9mdRQcEBXRK9Upw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CvveszUl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CvveszUl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 36F2134FC0 X-Spam-Score: -2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: kaOMkYzSXBQe Hello, Liliana Marie Prikler writes: > Hi, > > Am Mittwoch, dem 26.01.2022 um 13:05 +0100 schrieb Ludovic Court=C3=A8s: >> > Are there any more specific environment variables that exist that can >> > replace XDG_DATA_DIRS?=C2=A0 I'm not too knowledgeable about the >> > freedesktop specs, but I'm somewhat skeptical?=C2=A0 If they don't yet >> > exist, that makes this idea much less actionable. >>=20 >> I don=E2=80=99t know.=C2=A0 Like I wrote, the two main cases are glib an= d qt.=C2=A0 Why >> do we have them use XDG_DATA_DIRS for?=C2=A0 This is what we need to >> investigate. > Applications based on GLib or Qt usually put their configuration in > XDG_CONFIG_HOME/XDG_CONFIG_DIRS and their data into > XDG_DATA_HOME/XDG_DATA_DIRS. =C2=A0Yes, it's that broad, XDG wants it to = be > that way :P > There are additional environment variables for some things =E2=80=93 one > example would be GSETTINGS_SCHEMA_DIR =E2=80=93 but many things are simpl= y put > in those XDG directories. For example, gio, which is part of GLib, > uses it to look up MIME stuff [1]. Icons and themes follow a similar > trend as far as I can see. This is what I perceive too; XDG variables are broad by design, and there aren't more finer grain alternatives that currently exist. The main problem to solve in my opinion is to not break the users environment on foreign distribution. Plugins for example probably ought to be searched by GUIX_ prefixed environment variables rather than their stock versions, else users may find binary incompatible versions to crash their host-provided application, for example. I don't really mind how to solve it, but using a prefix seems a relatively straight forward, bullet proof way to isolate the host from potentially undesirable effects of installing Guix components. Imagine if Guix-provided Emacs was to use GUIX_EMACSLOADPATH instead of EMACSLOADPATH. This would have the benefit that users could continue using their host provided Emacs (without having it see potentially incompatible byte compiled .elc packages) in parallel to the one installed with Guix. Thanks, Maxim