SUMMARY The latest Flatpak release of Kile has broken PDFLatex compilation. Project doesn't build when you launch kile from kick-off menu directly. Default permissions are used. From kde menu editor, I found that Kile flatpak is being launch with the following command by default: flatpak run --branch=stable --arch=x86_64 --command=kile --file-forwarding org.kde.kile @@u %U @@ STEPS TO REPRODUCE 1. Launch the Kile flatpak from the Kick-off menu or lauch kile by typing the above command in the konsole. 2. Open a latex project (a .tex file). 3. The project fails to build in PDFLatex (and other packages) OBSERVED RESULT Project doesn't build. Shows the error message: [PDFLaTeX] failed to start Cannot open log file, did you run latex? EXPECTED RESULT 1. Launch the Kile flatpak from the Kick-off menu. 2. Open a latex project (a .tex file). 3. The project should build in PDFLatex. However, if I launch kile through terminal with 'flatpak run org.kde.kile' everything works perfectly. PDFLaTeX works as expected and builds the project. SOFTWARE/OS VERSIONS Operating System: TUXEDO OS 2 KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 Kernel Version: 6.5.0-10006-tuxedo (64-bit) Graphics Platform: X11
UPDATE: If I run the system check command in Kile (Settings>System Check), it fails for multiple tests when Kile is launched with default command (flatpak run --branch=stable --arch=x86_64 --command=kile --file-forwarding org.kde.kile @@u %U @@) But if you remove "--command=kile" argument from the command and then launch kile, all the tests are passed and projects build normally.
I can reliably reproduce this bug on the 2023-11-09 version of the Kile flatpak (commit b4f211822c3c3766cba6ab90285e05f3439d9283feddd484b6cbe350a2027770). Launching it via krunner results in a single "[LivePreview-PDFLaTeX] failed to start" message and nothing else in the errors or output section. Running the system check reveals that Kile cannot find most TeX-related binaries. Running it with 'flatpak run org.kde.kile' works properly, as described in the report.