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.
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.
I also have the problem that kate loads a path that is not that one in my .zshrc file. But I am on gnome and I do not have a folder called `~/.config/plasma-workspace/`