On 2024-06-22, Nils Landt wrote:

I realize that the problem goes away if I remove the control block. So maybe
it's just a logic error on my part. I'd still like to know what is setting the
GUIX_PROFILE to $HOME/.guix-home/profile when I launch tmux.

The installer adds /etc/profile.d/zzz-guix.sh which, among other things, sets 
GUIX_PROFILE.

But I don't know why this happens with tmux and not your regular shell session.

So I guess it might be due to the fact that tmux starts a login shell, so all the profile files are sourced, where as the gnome terminal starts with an interactive session? Possibly mixing up the terms a bit there.

Adding the following to the tmux rc file fixes it:

```
# ~/.tmux.conf
# Don't run a login shell!
set -g default-command "${SHELL}"
```

cheers,
Adam

--
Adam McCartney - https://admccartney.mur.at /

Reply via email to