NixOS - Running binaries in session file requires absolute paths? #8822
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xfzv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On NixOS 25.05, I'm trying to use the following
session.conf
:with:
% kitty --session /path/to/session.conf
But this doesn't work. Kitty just opens a blank shell in
/path/to/session.conf
.If I use
zsh
absolute path, then it works as expected:I eventually found
exe_search_path
option in the docs.Based on the option description, I guess I shouldn't have to add it to
kitty.conf
since/etc/profiles/per-user/xfzv/bin
is in my$PATH
:It's not the case for my root user so I tried it just to make sure, but it doesn't make any difference:
Am I really supposed to use full paths in
session.conf
i.e.launch /etc/profiles/per-user/xfzv/bin/zsh
instead oflaunch zsh
in this case?On non-Nix OS distros,
launch zsh
works just fine for me, I don't have to use e.g.launch /usr/bin/zsh
.Beta Was this translation helpful? Give feedback.
All reactions