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 IPfZJ0yp8WGPGQEAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 21:04:28 +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 wFvJJEyp8WFRzAAAauVa8A (envelope-from ) for ; Wed, 26 Jan 2022 21:04:28 +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 4700613427 for ; Wed, 26 Jan 2022 21:04:28 +0100 (CET) Received: from localhost ([::1]:60302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCoWp-0000jx-7c for larch@yhetil.org; Wed, 26 Jan 2022 15:04:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCoWQ-0000ii-Kd for guix-patches@gnu.org; Wed, 26 Jan 2022 15:04:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCoWQ-0004BH-B6 for guix-patches@gnu.org; Wed, 26 Jan 2022 15:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCoWQ-0002md-8Y for guix-patches@gnu.org; Wed, 26 Jan 2022 15:04: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: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jan 2022 20:04: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer Cc: 53447@debbugs.gnu.org Received: via spool by 53447-submit@debbugs.gnu.org id=B53447.164322739810648 (code B ref 53447); Wed, 26 Jan 2022 20:04:02 +0000 Received: (at 53447) by debbugs.gnu.org; 26 Jan 2022 20:03:18 +0000 Received: from localhost ([127.0.0.1]:53635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCoVi-0002lg-05 for submit@debbugs.gnu.org; Wed, 26 Jan 2022 15:03:18 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCoVg-0002lQ-Gs for 53447@debbugs.gnu.org; Wed, 26 Jan 2022 15:03:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id r7so403839wmq.5 for <53447@debbugs.gnu.org>; Wed, 26 Jan 2022 12:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=UHo/GPQcr2HqTLzzwAUJcFK6/XJM/sKqVAT3wQvuSc0=; b=WJxXQ7qNOdlrbdoWP+6vbzfg4Nn5XfmMW28IJ4O3gFP7cQ90tjdL4Z9LXunKsLnwY/ po+4FXJFFIS157yNzUsJRCSWlti4hYtBkRo/BLH1MFCkUgFbRSYrzLibdF7if9f8UqrI gTslTT2eaKv6f+V+uRy02LDTVaz1IUdg1JKNL2vEufGA0yVv9U8wSw1HUikdGVinfyN8 YNdQB7iC64RodHzvH0PCzQKYUHLwviA+NdiRZkijHwKOpLeKzkRtAS9aS/FnaODBcRRN xaB1BgiQDAaaJTVpqa9gFeUao7YmP2LI5XkJsoDS8aH4BrTw7N2xLl6eLxBFNSJoqlPx rmgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=UHo/GPQcr2HqTLzzwAUJcFK6/XJM/sKqVAT3wQvuSc0=; b=bgmc5xMpM+9z0zvewMfBLgI78ZG3doZQbIo/XjHuulFnERUlTFp0RSaRsaeubzkm/s 9EdozGQ+9eOSQ98ywigLkBdqapZFZitQFKiYVQx29bqRgtfyQD1U0UsYpAwdJMPAE4Ip M3grIYOwcH9hG4SRWtJ5ijpYFtLsgDeGSUnEODZFH2TTfdygyx2DZz1Vbv3OdBqejuCR 9wLBGlkX4jv44/OPdPwjKngubLjCNLbAlpqG2XF97wWSB6oiBYIRYwBWtqOp3ZpfUaJ4 izx3IQR8PF0N+PRVBiLN+NFwqnY6xKbErcInVuQLekq+a0nalt6nGJniKpkt7BalSWqg aiag== X-Gm-Message-State: AOAM5315vsannMD6YTEFKV4Jm1eRa9qYjDNSB5Mf9972wOsCibc0KavI d7htdnXuEozUAOdF1BrI2sQ= X-Google-Smtp-Source: ABdhPJxkZpEslEIzVaXCFE8+IZFSh2wCX4gGZi3dumQP72XVriuQ6k+j8Hc0l+wtSOzwYgX5zN+ekw== X-Received: by 2002:a05:600c:281:: with SMTP id 1mr283227wmk.134.1643227390466; Wed, 26 Jan 2022 12:03:10 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id a24sm3921493wmm.31.2022.01.26.12.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 12:03:09 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Wed, 26 Jan 2022 21:03:05 +0100 In-Reply-To: <878rv2itxo.fsf@gnu.org> 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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1643227468; 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=UHo/GPQcr2HqTLzzwAUJcFK6/XJM/sKqVAT3wQvuSc0=; b=FVi+yxavYz+l3RCl1cgpjlnWWxFb/ZT38ZfJfWBlLDhlesOGk/dAyRlbJ0MGZLj7TtBIYC lAk4uP/1K9lwotBELxmxhFLxDWnPpdvJMeZcyKe5bv4pyuUdZFBsIqgiOCfJRoS8Z4q88g mnWeLy+3leFWdeC27N3JdXYDk1mxjoJHZViEfeNPMfQxEqFhD5GjaelBBwlveF5Y7Z+n4A px5FUfgw+9XpHzzYVMN1rT+8ODbgoKbysYcea80ytZ81sFOPb4YgBj3S1olfY2/H1mDyB8 0HGQmS3hUK3apo+BbtRRaCy8SAmJCyBXlUghoEV5Yx3W4e/AXUPnGU/pe0tR3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643227468; a=rsa-sha256; cv=none; b=N2nC0XOfRpctdut6uDbwL1Wpvkx1Is7jpz7zt4evJ+NsM3Q90ia43McNus85nOYk7W+w2V vSz0zUNQ3s93178idhPtUCZIjgAsyUAEyEWUJh6B54Qh/X6T3XOV5qE8yXwl33AhkwHgAo MZRLMMwyNg1kPYjdcsG4D1GA80T8MLL65TLPlrkUftqREGfz6XY6GT6KCi2LnRfcfB3uNi jUjJ/EG0pm+4Q8+jmdv1cn5jH2Fv37HXELmnRZH9ybPB1o9gOzB4Bdiug0EQnTSBJoObND wfzPmZGL9bvvx9weUV8fsxQLLTmH5YU4IuqRSfabjQ8LpSu3bRszMBPFlq8EkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WJxXQ7qN; 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=WJxXQ7qN; 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: 4700613427 X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: jOBrQpASVzia Hi, Am Mittwoch, dem 26.01.2022 um 13:05 +0100 schrieb Ludovic Courtès: > > Are there any more specific environment variables that exist that can > > replace XDG_DATA_DIRS?  I'm not too knowledgeable about the > > freedesktop specs, but I'm somewhat skeptical?  If they don't yet > > exist, that makes this idea much less actionable. > > I don’t know.  Like I wrote, the two main cases are glib and qt.  Why > do we have them use XDG_DATA_DIRS for?  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.  Yes, it's that broad, XDG wants it to be that way :P There are additional environment variables for some things – one example would be GSETTINGS_SCHEMA_DIR – but many things are simply 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. Note that according to the freedesktop specs, these directories are ordered by preference, so Guix prepending stuff might not always be what was asked for. However, I'd also argue that if users wanted their distro stuff to shadow what Guix has, they could first clear the variable, then load the Guix stuff and finally prepend the distro stuff. And arguably if you spawn a `guix shell' you probably want that shell to have effect over everything else in your system (or you add a hack to your rc files to make it not so). In any case, I'd find it hard to argue that users have no choice here. It's their shell, they can source profiles in any order they wish. WDYT? [1] https://developer-old.gnome.org/gio/stable/running-gio-apps.html [2] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html