all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Baums <baums@stefanbaums.com>
To: help-guix <help-guix@gnu.org>
Subject: Nix programs on path but not found
Date: Tue, 22 Feb 2022 21:10:23 +0100	[thread overview]
Message-ID: <87y222fys0.fsf@lmu.de> (raw)

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


             reply	other threads:[~2022-02-22 20:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 20:10 Stefan Baums [this message]
2022-03-02 18:15 ` Nix programs on path but not found Gary Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y222fys0.fsf@lmu.de \
    --to=baums@stefanbaums.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.