From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: wrap-program Date: Thu, 2 Oct 2014 09:09:21 +0200 Message-ID: <20141002070921.GA25816@debian> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZaWA-0001md-4c for guix-devel@gnu.org; Thu, 02 Oct 2014 03:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZaW2-000692-Ky for guix-devel@gnu.org; Thu, 02 Oct 2014 03:09:38 -0400 Content-Disposition: inline In-Reply-To: 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: Federico Beffa Cc: guix-devel@gnu.org Hello, 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 variables $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 environment variables pointing to a subdirectory of .guix-profile? For instance, I have the following in my .bashrc: export PYTHONPATH=$HOME/.guix-profile/lib/python2.7/site-packages:$HOME/.guix-profile/lib/python3.3/site-packages And I already have export XDG_DATA_DIRS=$HOME/.guix-profile/share This one was just good to have and, if I remember correctly, not suggested when installing some package, but it could be added to the packages needing it. Andreas