Ok.. I finally found the problem. Sorry for it taking so long!

sudo for ubuntu is compiled with a secure_path that contains
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin".

Therefore using sudo kate would only look for kate in the search path
above, not in the search path you have defined in /etc/environment or in
your user environment. This is a security measure to prevent sudo users
to execute a wrong system command by accident and therefore possibly
create a security breach.

I am not sure if there is a real solution for this except an override of
the compiled search path by a configured one in /etc. I have not found
yet if this possible.

-- 
run "sudo kate" and got a "command not found"
https://bugs.launchpad.net/bugs/191264
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to