From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yEwFNrpFFWKIxgAAgWs5BA (envelope-from ) for ; Tue, 22 Feb 2022 21:21:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CPuvLrpFFWKTbwEAG6o9tA (envelope-from ) for ; Tue, 22 Feb 2022 21:21:14 +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 2091026E07 for ; Tue, 22 Feb 2022 21:21:14 +0100 (CET) Received: from localhost ([::1]:55460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMbeq-0004dG-Lg for larch@yhetil.org; Tue, 22 Feb 2022 15:21:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMbUS-0005so-Ro for help-guix@gnu.org; Tue, 22 Feb 2022 15:10:28 -0500 Received: from stefanbaums.com ([164.138.27.169]:47770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMbUR-0004G8-4r for help-guix@gnu.org; Tue, 22 Feb 2022 15:10:28 -0500 Received: from deepthought (unknown [185.213.154.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: baums) by stefanbaums.com (Postfix) with ESMTPSA id 1A24219E2F9 for ; Tue, 22 Feb 2022 21:10:23 +0100 (CET) From: Stefan Baums To: help-guix Subject: Nix programs on path but not found Date: Tue, 22 Feb 2022 21:10:23 +0100 Message-ID: <87y222fys0.fsf@lmu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=164.138.27.169; envelope-from=baums@stefanbaums.com; helo=stefanbaums.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 22 Feb 2022 15:20:40 -0500 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=1645561274; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=yPwJ1ypMC9o+zJA54FVO0kmnI6nwNaluXNeY9SI5JKc=; b=INWzAj6Bb2DrKDSja/DCBM8ollXt0sqM+Po1FTF0vglwT0UIXcd1HhUvsjyXCv+hG9KMIQ leVTD1BVtT3fp2/zD30pWHEfmixLgszt/VdU2M9WlzHj3TtHseGvXDb5KvBBRmuHfDy85L +E/wwIr/WXqm+59rZ1GBB8vawPXIW7szo6wQQ6/wkEAideJJ+vOGJsX2O1FGukw0OgoQgC EfVlqCCAQOz5sqypn0Rkxqi9RU9s1/IXjoWfNzmMGefKQtmX+Poj4aYjPQ9wBaGApHGzH4 /dILu9dROyfztQXEcW9hcmxi2gJ1XVqEeAsLlLWfk91922grLFiZ1idpr6IrHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645561274; a=rsa-sha256; cv=none; b=ShkcWtvBxUYP1AlBH7+5b1i+smVuvtA57Peb97BkM5Wa8X47C3XBMmF39Ov2fREX3qk5nf ORRN8gxA6g67cFtktUGgB3o1rXuZajGj7U8frVSwaeG32FT4gVA5LLbuhEpJVGY2EAl0Jf kpxyJAlMJHe1oODP+UVnYzo5rxnx2l/dFphOult9dESIcqpoPLxIG3e2sX7OPxrMjwrgE9 d2jwwjJ2vaLAmxMLsw4K3HlhZypG2y58p0+aUVyCygDHPAtXL+CnxQNsh0K4FXGjU0LCR8 +ihxj0yYqnBj1L7Zk2KB9mRSonRDba1bLnwGZShFFAiBeQXwyt8WRaCiz5XobQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=stefanbaums.com (policy=none); 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: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=stefanbaums.com (policy=none); 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: 2091026E07 X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: WK4anHAEsyeA Dear all, 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: (setenv "PATH" (concat (getenv "PATH") ":/home/user/.nix-profile/bin")) (setq exec-path (append exec-path '("/home/user/.nix-profile/bin"))) followed by: (start-process "xinit" "xinit" "bash" "/home/user/.xinitrc") After startup, in eshell I then get: ~ $ echo $PATH /run/setuid-programs:/home/user/.config/guix/current/bin:/home/user/.guix-profile/bin:/home/user/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/sbin:/gnu/store/0c1yfbxyv877mlgychfgvmk5ha2jqh52-gzip-1.10/bin:/gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin:/home/user/.nix-profile/bin and when I check the value of exec-path, it is: ("/run/setuid-programs" "/home/user/.config/guix/current/bin" "/home/user/.guix-profile/bin" "/home/user/.guix-profile/sbin" "/run/current-system/profile/bin" "/run/current-system/profile/sbin" "/gnu/store/0c1yfbxyv877mlgychfgvmk5ha2jqh52-gzip-1.10/bin" "/gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin" "/gnu/store/955rbw95zj8g2a3ail5zf9ml7jzi4zr0-emacs-27.2/libexec/emacs/27.2/x86_64-pc-linux-gnu" "/home/user/.nix-profile/bin") (both as expected). >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? All best, Stefan