From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: wrap-program Date: Thu, 02 Oct 2014 10:41:39 +0200 Message-ID: <87lhoy6eyk.fsf@gnu.org> References: <87fvfm8m4f.fsf@gnu.org> <87fvfm595n.fsf@gnu.org> <874mw0umtv.fsf_-_@gnu.org> <87tx3yi3ky.fsf@yeeloong.lan> <87egv15w7s.fsf_-_@gnu.org> <87a95lju7g.fsf@gnu.org> <20141002070921.GA25816@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZbxG-0006Ah-6S for guix-devel@gnu.org; Thu, 02 Oct 2014 04:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZbxA-0001uW-7B for guix-devel@gnu.org; Thu, 02 Oct 2014 04:41:42 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:44829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZbx9-0001uS-Vd for guix-devel@gnu.org; Thu, 02 Oct 2014 04:41:36 -0400 In-Reply-To: <20141002070921.GA25816@debian> (Andreas Enge's message of "Thu, 2 Oct 2014 09:09:21 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org, Federico Beffa Andreas Enge skribis: > I am only now catching up with the discussion. So far, I do not understand > why we need a wrapper. Would it not be enough to add the environment vari= ables > $XDG_DATA_DIRS etc. to the search paths of the programs, in the same way = as > perl or python modules incite the user to define the corresponding enviro= nment > variables pointing to a subdirectory of .guix-profile? There are several things to consider. First, it=E2=80=99s better if things= work out of the box. Second, sometimes, we may want to trade dynamicity for reproducibility (and =E2=80=9Creferential transparency.=E2=80=9D) In the case of GTK+ plug= -ins, if we force GTK_EXE_PREFIX in a wrapper, then we make sure the application is using the =E2=80=9Cright=E2=80=9D plug-ins, at the cost of making the syste= m more static. For schemas, having XDG_DATA_DIRS defined in a wrapper would just make sure that the application actually works (otherwise it could end up using the wrong schemas, I suppose.) My 2=C2=A2, Ludo=E2=80=99.