From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 18 05:46:10 2021 Received: (at 50103) by debbugs.gnu.org; 18 Aug 2021 09:46:10 +0000 Received: from localhost ([127.0.0.1]:54906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGI98-00077K-Kb for submit@debbugs.gnu.org; Wed, 18 Aug 2021 05:46:10 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:13383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGI93-00076j-63 for 50103@debbugs.gnu.org; Wed, 18 Aug 2021 05:46:05 -0400 Received: from [10.0.0.4] (62-47-226-13.adsl.highway.telekom.at [62.47.226.13]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GqNLt2drKz3x9h; Wed, 18 Aug 2021 11:45:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1629279958; bh=x8wVMg8MyDxfGoT6ppr/aBvWjHP/g/jnx/Gx1Y7OjGU=; h=Subject:From:To:Date:In-Reply-To:References; b=tGQ89qnRLqIFuBzTihTBlrjjaQS9VRcm+y6ew7Fe5IyJdVwHcuutzVKxu+FCBfENt 5mmi/pcf55/rM7VyXyByVhGheV4r7pnaa1iY1aE/7LipfbEtDPZ3OYn8zmBwR9EFnl pLQ3pgU7RJW/ygNMNEgm4KIdTA/VgIF5Df+X8KX4= Message-ID: <459e9a0866a72bd3bf792d347e249f854e5654e1.camel@student.tugraz.at> Subject: Re: bug#50103: Pulseaudio doesn't export XDG_CONFIG_DIRS From: Leo Prikler To: Maxime Devos , john.kehayias@protonmail.com, 50103@debbugs.gnu.org Date: Wed, 18 Aug 2021 11:45:37 +0200 In-Reply-To: <04f0f93cb3dd7fa70d940f200b00432eaf9004e9.camel@telenet.be> References: <8260714867d007d924c151a18ff9c63950ab2fcd.camel@student.tugraz.at> <04f0f93cb3dd7fa70d940f200b00432eaf9004e9.camel@telenet.be> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50103 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 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 ‘thunked’ field would resolve the 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. Regards