tmux-continuum icon indicating copy to clipboard operation
tmux-continuum copied to clipboard

Systemd service assumes tmux path

Open mkaito opened this issue 6 years ago • 1 comments

The path assumed by the systemd service template can be wrong on certain distributions. In particular, NixOS does not put the executable anywhere you'd expect it. For my user profile, it's at /etc/profiles/per-user/mkaito/bin/tmux. As you can see, there's no way for you to know in advance.

If at all possible, the template should run $(which tmux), instead of assuming it knows the path.

mkaito avatar Apr 01 '18 20:04 mkaito

Or better: $(command -v tmux).

command -v is a (POSIX) shell builtin, whereas which is a binary that may or may not be available.

bjornfor avatar Feb 11 '20 08:02 bjornfor