From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eO01MuQ43V9zCAAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 23:19:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8AAJLuQ43V/vEwAA1q6Kng (envelope-from ) for ; Fri, 18 Dec 2020 23:19:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AB2B3940396 for ; Fri, 18 Dec 2020 23:18:59 +0000 (UTC) Received: from localhost ([::1]:52458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqP1W-00065c-23 for larch@yhetil.org; Fri, 18 Dec 2020 18:18:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqP0k-00065O-Nu for help-guix@gnu.org; Fri, 18 Dec 2020 18:18:12 -0500 Received: from zancanaro.com.au ([45.76.117.151]:55178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqP0d-0002Zn-37 for help-guix@gnu.org; Fri, 18 Dec 2020 18:18:10 -0500 Received: by zancanaro.com.au (Postfix, from userid 116) id 9AB5C32FB1; Fri, 18 Dec 2020 23:17:59 +0000 (UTC) Received: from jolteon (unknown [27.96.215.68]) by zancanaro.com.au (Postfix) with ESMTPSA id 39C0432F94; Fri, 18 Dec 2020 23:17:59 +0000 (UTC) References: <87h7ov0vxl.fsf@disroot.org> <87h7ou1yxf.fsf@ambrevar.xyz> <861rfxj0lx.fsf@gmail.com> <87wnxgf3hh.fsf@disroot.org> <867dpfools.fsf@gmail.com> <875z4z4v6s.fsf@zancanaro.id.au> <86h7ojmqtq.fsf@gmail.com> <8736034fsk.fsf@zancanaro.id.au> <87pn37f8xb.fsf@disroot.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Carlo Zancanaro To: "Jorge P. de Morais Neto" Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix? In-reply-to: <87pn37f8xb.fsf@disroot.org> Date: Sat, 19 Dec 2020 10:17:57 +1100 Message-ID: <871rfmael6.fsf@zancanaro.id.au> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=45.76.117.151; envelope-from=carlo@zancanaro.id.au; helo=zancanaro.com.au X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: AB2B3940396 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4tp0+tjUL4Kv Hi Jorge, On Sat, Dec 19 2020, Jorge P. de Morais Neto wrote: > It is a pity though that this workaround needs writing manual > wrappers for every affected program. In this particular case, we can actually fix Emacs. When Emacs spawns a child process it passes the environment as specified in the process-environment variable, so you can clear out the unwanted environment variables by running something like this during startup: (setq process-environment (seq-remove (lambda (s) (or (string-prefix-p "GTK_PATH=" s) (string-prefix-p "XDG_DATA_DIRS=" s))) process-environment)) That doesn't solve the broader problem in Guix, but it should make Emacs in particular work properly. Carlo