Hi,
I was wondering which $PATH kate uses by default to search for binaries?
I’ve installed several LSP’s, which have their binaries either in ~/bin, or ~/node_modules/.bin, or … but Kate doesn’t find them.
I’ve added them to my $PATH in .zshrc, and as such I can find the binary, Kate doesn’t seem to pick this up.
I only see the binary of kate in 1 place:
~/Descargas whereis kate ✔ 15:54:36
kate: /usr/bin/kate /usr/share/man/man1/kate.1.gz
Regards
Thanks, but what I’m looking for is which path Kate will search to find language server binaries, not where Kate itself is.
I’ve also tried adding the path to ~/.profile, but no difference.
If kate is started by plasma, the $PATH set up in your .zshrc may not have been run. Depending on the distro, KDE might be started without running the likes of .profile or /etc/profile.
To get around this, scripts in ~/.config/plasma-workspace/env
are sourced early and $PATH settings there will work for apps started by plasma. Note that these scripts are sourced by sh (which is dash
on debian derived distros); the shebang is ignored and constructs not supported by sh
cause the scripts to exit silently.
The scripts show up in system settings, autostart as “Pre-startup Scripts”, but one can’t add them there.
2 Likes
my env
folder is empty on kubuntu, but if you add your $PATH statement here it should get picked up by plasma.
2 Likes