Bug 476675 - Kile Flatpak fails to build pdflatex projects
Summary: Kile Flatpak fails to build pdflatex projects
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.9.93
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-07 12:58 UTC by Arjun
Modified: 2023-11-12 09:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arjun 2023-11-07 12:58:52 UTC
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
Comment 1 Arjun 2023-11-07 13:58:10 UTC
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.
Comment 2 Bence Göblyös 2023-11-12 09:30:23 UTC
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.