From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A0EBA138A1F for ; Wed, 29 Jan 2014 06:37:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7319CE0AD6; Wed, 29 Jan 2014 06:37:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75550E09E4 for ; Wed, 29 Jan 2014 06:37:09 +0000 (UTC) Received: from [192.168.1.3] (unknown [96.241.16.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tetromino) by smtp.gentoo.org (Postfix) with ESMTPSA id 8A86233F7A4 for ; Wed, 29 Jan 2014 06:37:08 +0000 (UTC) Message-ID: <1390977437.7120.2.camel@lightboat.home> Subject: Re: [gentoo-dev] Dealing with XDG directories in ebuild environment From: Alexandre Rostovtsev To: gentoo-dev@lists.gentoo.org Date: Wed, 29 Jan 2014 01:37:17 -0500 In-Reply-To: References: <20140125221628.26f3aa96@pomiot.lan> <20140126204926.33f2baef@googlemail.com> <20140126213527.1f5f6192@googlemail.com> <20140126225959.6f17bf8a@pomiot.lan> <20140126220347.720b12ed@googlemail.com> <20140127011054.2038.qmail@stuge.se> <1390863743.4662.7.camel@kanae> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2fbb30bc-274d-447b-b2bb-a690f2508aa3 X-Archives-Hash: fbe5f80b90aa7eb2bdba017c7fcf4a8d [Replying again since my mailer messed up my original message.] On Tue, 2014-01-28 at 12:03 -0500, Mike Gilbert wrote: > Option 3: Unset the variables > > This should cause applications to default to locations under ${HOME}. > This could be done in global scope (unless I am overlooking something > in PMS), and so it would not require consumers to invoke anything > explicitly. Only those applications that properly comply with standards :) For instance, glib did not start respecting ${HOME} until version 2.36 if I remember right; before that, unset XDG_* variables would cause g_get_user_cache_dir() etc. to fall back to something under /root/ no matter where ${HOME} pointed. Which is the main reason why gnome2_environment_reset() was created.