From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uM69JFi5H2JqAwEAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 19:37:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cCheHVi5H2L9gwAAG6o9tA (envelope-from ) for ; Wed, 02 Mar 2022 19:37:12 +0100 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 22C2812D5D for ; Wed, 2 Mar 2022 19:37:12 +0100 (CET) Received: from localhost ([::1]:58286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPTqZ-0006aY-5A for larch@yhetil.org; Wed, 02 Mar 2022 13:37:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPThO-00054z-Ar for help-guix@gnu.org; Wed, 02 Mar 2022 13:27:42 -0500 Received: from knopi.disroot.org ([178.21.23.139]:51268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPThL-0007xx-NR for help-guix@gnu.org; Wed, 02 Mar 2022 13:27:41 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C97C58EBCF; Wed, 2 Mar 2022 19:27:37 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gfphLFgv4HcW; Wed, 2 Mar 2022 19:27:34 +0100 (CET) References: <87y222fys0.fsf@lmu.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1646245651; bh=UZUjUSwX4Ry16IPeIF9ihV3j85LIZapohWUps3Ns7AM=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=IA0r/dmRn0btJDnR1gk+Vb9BSd24Qpnl9y7dPbq4D8nEgitFlkPfy3Pjzl6yOiNIH 7cFdufUN1CPpkYLnv1YUS8OmTBY4RqU7uVMUHA0LrH5N0sw47O8PMG7Bbt/NMybHpy DAfbN7dUi0hsWZJ9TgLxVGT4+s9HcaNZI4U8MUFzt1QngbHoZqsyauDlTx2Ery2hNo 9uokgyf3l/VaoBnvVHO28bgB95OgUGwtl0OwvlPCJqioc9YShBrxKhGRKklKdFu1MB cvYKXW4+h/JohHYoxXqi1kLC8lvcWKzvdFd7Kpue8joTUEQlwMkdER+/buoMPybz5s eSoCeeNIi7oBQ== Date: Wed, 02 Mar 2022 13:15:49 -0500 From: Gary Johnson To: Stefan Baums Cc: help-guix@gnu.org Subject: Re: Nix programs on path but not found In-reply-to: <87y222fys0.fsf@lmu.de> Message-ID: <87pmn42os9.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646246232; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YkrqNTiP4gtKDov4vrBLE/Mag8rZE3KyF894PPyWzks=; b=mJ4pOPxU1i0wPq/dA4gm14+6rw4ozGtKy6BuCgYGq56di8GKvJ2uex8+jCclzVoFZHjQUB POmF4ughmaVR2otA4bTH9vsLBolgVLQp9Q+bJ0ll/aAej5gop4PcNcw0MPd5dTXe98tf0U w/h+FT5BFaXJA0VfL3j0axumL3Z7kh4uwc5yhLbt4rh1qhihoK4XcN3HiztfgNyzKYepsk 4cndyjIWXDobnFuh3SFsBWJxouTayOvIJhh7/hptJmBbtp8n/3XusywZ9nXIyhdnNzkB/+ yDApKmU1kcMP9rMvxZoVnqvv/F6lnmBPtnbEcu7htNyKk09fnI9O1fknwVOlHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646246232; a=rsa-sha256; cv=none; b=eL+T318XFVbdLuTBtwBxAzpTzhmo1OmXu906iSdSoCIcOCSiYuftjwjTwq/KG7HCmLgbQs jDUKQhtctxLDZODhwnahUGaqKG21Wd+kpxZuek/B0SyJH2jwgOsnNIH0f5Pt4vYDKtYjng Y7L35yne4oNqMVEGdlku90gsE3tlAQpiDnm85UlrsDZjXQG5u3APOwynoHOoqCooNmjBi3 LzAbihmo+Oq26tw4S1uq2AleX0RB79i9TZgkq3Mn+mu01PsoVKH65NDFoouPWJItzn0weI bceAvaF0lfyBy0PIr2DMRzS5oiVTe+Cmwg6qsXaQ7DZ0Rc9H64RXMmP56ina2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b="IA0r/dmR"; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b="IA0r/dmR"; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 22C2812D5D X-Spam-Score: -7.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZeKrqq8qm/DQ Stefan Baums writes: > I am running Guix with EXWM. Prior to Guix, in Ubuntu, I used > ~/.xinitrc to set some environment variables and run some startup > programs. Since this is apparently not read in Guix+EXWM, I put > the following at the top of my ~/.exwm instead: > > ...snip... > > From ansi-term and from async-shell-command, I am now also able to > run programs installed in my Nix profile (e.g., onboard), but NOT > from eshell (even though PATH is there shown as above), and NOT > from the .xinitrc invoked from my .exwm startup script. > > Does anybody what is going on here, and how to fix it? I'm not sure what is happening in your particular case, but I am also using Guix with EXWM (and have been doing so for several years now). What I do for setting up my environment is this: 1. Declare environment variables in ~/.bash_profile (source ~/.bashrc from here as well). 2. Declare aliases in ~/.bashrc. 3. Set up my X environment (with xsetroot, xset, setxkbmap, xrdb, etc.) in ~/.xsession. End the ~/.xsession file with "exwm" on the final line. 4. Put my Emacs configuration in ~/.emacs.d/init.el. 5. Put my EXWM configuration in ~/.exwm. 6. Put my eshell aliases in ~/.emacs.d/eshell/alias. When I log in via Guix's graphical login prompt, each of the files I listed above are executed in the order that I named them. All environment variable settings from my ~/.bash_profile are inherited by all shells (including eshell) in Emacs. Have fun and happy hacking! Gary -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html