I have recently installed latest TeX Live 2020. Post installation, I have added the PATH of texlive installation /usr/local/texlive/2020/bin/x86_64-linux to ~/.bashrc and /etc/environment. Now, if I start Kile from terminal it compiles any document using the installed Tex Live 2020 binaries. Infact it can locate all the binaries. No error.
The problem starts when I run Kile from graphical menu or launcher icon. It just cannot find the LaTeX binaries anymore. Compiling a document gives an error: <some-package>.sty not found. Why does this happen?
P.S. There are lots of question asked on here, related to this particular topic. I have gone through almost all of the solutions (most of them talk about setting the correct PATH). I have done that. Rebooted the sytem too.
So I am raising this question (again!) with a hope for a fresh solution.
which -a pdflatexgive on your machine? Does it list more than just the pdfLaTeX in/usr/local/texlive/2020/bin/x86_64-linux? – moewe May 10 '20 at 05:55which -a pdflatexlists more than onepdfLaTex, the other one being in/usr/bin. The issue is I can't remove the second TeX system as it removes Kile too. Also, the Kile doesn't have any configuration window where we can add thePATH. I could find two ways in which KILE GUI can start LaTex process: add/usr/local/texlive/2020/bin/x86_64-linuxto each TeX command in Kile GUI (see this https://ubuntuforums.org/archive/index.php/t-141934.html). The second way is to addPATHto/etc/login.defs(see https://github.com/latexdraw/latexdraw/issues/27#issuecomment-623427572). – Tanvir May 10 '20 at 10:32