From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KArEIjgZHWENAgAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 16:29:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iI2FHjgZHWG0RQAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 14:29:12 +0000 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 434CC267B6 for ; Wed, 18 Aug 2021 16:29:11 +0200 (CEST) Received: from localhost ([::1]:36102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGMZ4-0006gF-94 for larch@yhetil.org; Wed, 18 Aug 2021 10:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGMYw-0006eF-PM for bug-guix@gnu.org; Wed, 18 Aug 2021 10:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGMYw-0006lg-IO for bug-guix@gnu.org; Wed, 18 Aug 2021 10:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGMYw-0002Or-CJ for bug-guix@gnu.org; Wed, 18 Aug 2021 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50103: Pulseaudio doesn't export XDG_CONFIG_DIRS Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Aug 2021 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50103 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Prikler Cc: 50103@debbugs.gnu.org, Maxime Devos Received: via spool by 50103-submit@debbugs.gnu.org id=B50103.16292968829148 (code B ref 50103); Wed, 18 Aug 2021 14:29:02 +0000 Received: (at 50103) by debbugs.gnu.org; 18 Aug 2021 14:28:02 +0000 Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMXu-0002NJ-8Y for submit@debbugs.gnu.org; Wed, 18 Aug 2021 10:28:02 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:50497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGMXp-0002N2-Ey for 50103@debbugs.gnu.org; Wed, 18 Aug 2021 10:27:57 -0400 Date: Wed, 18 Aug 2021 14:27:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1629296866; bh=TRPqWwyUsLDL/H7cOG/HE+dgotudI87D1/oDawB7p2g=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=OXSz1NQ/x/XCT00+0wrjYzw69PMWgQytK3XCiQL/stxlWCk4NvnkJpbjGPXzhAcZz 9YTGvVJoh5Jp8LfkITMzr42h/9E3VoMOJ7wQcHVFRWKsLuEqhi+ptef4WEs1hIVhDi MOooGZ7pfEoLeNYZve6p8FMKk/4reZFO4AQX//jg= Message-ID: In-Reply-To: <459e9a0866a72bd3bf792d347e249f854e5654e1.camel@student.tugraz.at> References: <8260714867d007d924c151a18ff9c63950ab2fcd.camel@student.tugraz.at> <04f0f93cb3dd7fa70d940f200b00432eaf9004e9.camel@telenet.be> <459e9a0866a72bd3bf792d347e249f854e5654e1.camel@student.tugraz.at> 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629296952; h=from:from:sender:sender:reply-to: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=TRPqWwyUsLDL/H7cOG/HE+dgotudI87D1/oDawB7p2g=; b=bNgsGDeh7VmXN8ySkiK80sLKCs10tYlYkzV+M5piGblyC+8uz4qNdjj1pDBJUZLluXxyHb 9NmC1Lg699QVTvbQiahRLf0xVaQwS17SN4Ux87heLrDjGfXe2uJlgTVkAKH32d8I4h8gBG eiZOzXsGunyJlpZkCgNyTNp01EZ5iolefKp5VtcPAGlA333TegMKs/+u/xUJTKUTM+2oe6 pn/ZL3OXqaJrsia9LO6w0XJb0+Kdcykil0uZuEAbVVcxVgjFD67NPFG8YSwb7zUGhhdl5S nvHhWFS1pffx84sasgqmx2IG0/XevWnl8biYgIRZOYZStdH5qWono6nhYzjJKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629296952; a=rsa-sha256; cv=none; b=Vb3Vs5jj6/02QWDa3I5vNGotGSWHglvRCQp4wtwKK2hFftU7rs3UtD8LOgkXJ/LydXR6l4 Dp0Qb2GsPVnweUyLBasvY+B1JFPFUYovR1laQ39WnpVuS8c9KKJioNFqEPU2GlZ0pBxeTm hR5mWJAnidxy0X0E3N0WqHyDklf3vJzFuMMcvtUIw/082S4VMzwQeytFYQ1UjwbgOlTl9u FdhVfKfHbJWVGbB1+vW243OpkKxC3TYFsbW9jqId5Ewp4KN86Tinp3+ROiu3m2tUN7l/uz w+07deNtTDTDIq6KHrc+hzlvv7bLz7NFzXl2fLVTl+HF+06bMj33xn+/1U+sCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="OXSz1NQ/"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="OXSz1NQ/"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 434CC267B6 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 45DbNCKwZdjS Hi Leo and Maxime, Thanks for discussing this. A few questions/clarifications (perhaps mostly = because I'm still new here) below. I'm not familiar enough with the interna= ls of guix search-paths, so my perspective is mostly from the end-user stan= dpoint. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, August 18th, 2021 at 5:45 AM, Leo Prikler wrote: > Hi, > > Am Mittwoch, den 18.08.2021, 11:28 +0200 schrieb Maxime Devos: > > > Leo Prikler schreef op wo 18-08-2021 om 10:03 [+0200]: > > > > > Hi John, > > > > > > a lot of packages would do much better if they exported > > > > > > XDG_CONFIG_DIRS. However, there is currently no way of doing so > > > > > > other > > > > > > than copypasting the same snippet over and over and over and > > > > > > over. A > > > > > > workaround -- if you need this in an environment -- is to also > > > > > > include > > > > > > a package, that already has a search path on XDG_CONFIG_DIRS, like > > > > > > glib > > > > > > (I think glib:bin works too). > > > I'm slightly confused here: I only see XDG_DATA_DIRS in the glib package. I= include glib to get that export actually (I have everything in profiles, n= othing in the default user). Autostart files are in $XDG_CONFIG_DIRS/autost= art. XDG_DATA_DIRS seems to come up the most and more needed it seems to me= (based on what I have there in a desktop environment). > > > I recently tried exporting XDG_CONFIG_DIRS as a variable from one > > > > > > module, so that it can be referenced in others, but that led to a > > > > > > weird > > > > > > recursive errors. It would be nice to find a good way of doing > > > > > > that, > > > > > > though. > > > > What do you think of defining the > > > > $XDG_CONFIG_DIR in (guix search-paths) itself, next to $PATH? That > > > > seems > > > > unlikely to lead to recursive errors. > > > > Alternatively, I would guess that making 'search-paths' and > > > > 'native-search-paths' a =E2=80=98thunked=E2=80=99 field would resolve t= he errors, > > > > at cost of making objects use a bit more memory. > > Both sound like interesting proposals. Obviously, adding > > $XDG_CONFIG_DIRS to (guix search-paths) would work in the short term, > > but I think defining all interesting environment variables there is > > probably not the best solution for the future. There's a few variables > > that are used widely FSVO widely, but using them also implies having > > some package as input, e.g. the cURL-related ones. XDG_CONFIG_DIRS > > technically also falls in there, because you will have either xorg or > > xdisorg imported. Therefore, I think I'd prefer a solution where > > variables can be exported (and re-exported) from any module in the (gnu > > packages) subtree. > Is the case here that glib should have XDG_CONFIG_DIRS in it? Or does that = only make sense in some other package that could then be included in a prof= ile to get XDG_CONFIG_DIRS, similar to XDG_DATA_DIRS now? I didn't see many references to XDG_CONFIG_DIRS in our current packages, mo= stly in some Lisp compilers and a few other random places. Slightly surpris= ed it is not in more, but maybe packages that would normally put something = in /etc/xdg (default for XDG_CONFIG_DIRS) have been configured otherwise. I feel like my setup, from the cookbook, of having everything in profiles w= ith the default user one being empty other than testing, has exposed a few = related issues. What we are discussing might also have relevance to dbus fi= les (see #48538), and perhaps to an older issue about paths and /etc/profil= e (#20255). (Not to bring up an old issue, but it was one that came up when= searching for related issues in the past, which I skimmed.) John