From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: wrap-program Date: Wed, 24 Sep 2014 09:11:35 +0200 Message-ID: <87egv15w7s.fsf_-_@gnu.org> References: <87y4tliahf.fsf@gnu.org> <87r3zabohm.fsf@gnu.org> <8738bp16k4.fsf@gnu.org> <87lhpgoxjp.fsf@gnu.org> <87fvfm8m4f.fsf@gnu.org> <87fvfm595n.fsf@gnu.org> <874mw0umtv.fsf_-_@gnu.org> <87tx3yi3ky.fsf@yeeloong.lan> 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]:48377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWgjs-0006qb-5J for guix-devel@gnu.org; Wed, 24 Sep 2014 03:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWgjm-0002su-3O for guix-devel@gnu.org; Wed, 24 Sep 2014 03:11:48 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:55296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWgjl-0002sb-SL for guix-devel@gnu.org; Wed, 24 Sep 2014 03:11:42 -0400 In-Reply-To: <87tx3yi3ky.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 23 Sep 2014 14:39:25 -0400") 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: Mark H Weaver Cc: guix-devel@gnu.org, Federico Beffa Mark H Weaver skribis: > This 'wrap-program' strategy of setting environment variables before > running a program has problems. In this case, it means that every > program run within Emacs will inherit that GSETTINGS_SCHEMA_DIR value. > > Along the same lines, I've noticed that when running WindowMaker, all of > the programs within my X session include a WindowMaker-specific > directory at the front of PATH. > > It would be good to find another solution. I think whether using =E2=80=98wrap-program=E2=80=99 is a good strategy has= to be evaluated on a case-by-case basis. In some cases it=E2=80=99s OK, in others (like wmaker), it=E2=80=99s not so= nice. In cases like wmaker, another solution would be to patch the source code to execute directly the right binaries, without changing PATH. The downside is that it=E2=80=99s often less convenient to do. Thanks, Ludo=E2=80=99.