Bug 485789

Summary: Labplot cannot detect latex typesetting engine
Product: [Applications] LabPlot2 Reporter: maurosassi82
Component: generalAssignee: Stefan Gerlach <stefan.gerlach>
Status: RESOLVED FIXED    
Severity: normal CC: stefan.gerlach
Priority: NOR    
Version First Reported In: 2.10.1   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: labplot preferences screenshot

Description maurosassi82 2024-04-19 12:04:33 UTC
Created attachment 168673 [details]
labplot preferences screenshot

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

I just installed the latest Labplot version from Flathub on my system (Ubuntu 22.04) where I do have a working Texlive latex installation. It seems LabPlot cannot detect the latex engine (I get the attached screenshot upon going to preferences). It seems the issue was already reported by some user on stackexchange (https://tex.stackexchange.com/questions/703201/latex-subsystems-for-labplot-kde/715888#715888). I also tried with the identical version with similar result. TexLive version is the one provided with the universe repo (Version: 2021.20220204-1)

STEPS TO REPRODUCE
1.  Install TexLive on Ubuntu 22.04 via apt. Install labplot via flathub
2.  Open labplot.
3. 

OBSERVED RESULT

Labplot cannot typeset latex and say "No latex installation found"

EXPECTED RESULT

Latex installation is detected and user can select typesetting engine

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 22.04.1 (Gnome version)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Stefan Gerlach 2024-04-27 08:06:28 UTC
Using native apps (like latex) in a Flatpak is not allowed by the sandboxed design of Flatpaks. There are ways around this (see https://discourse.flathub.org/t/using-native-texlive-with-flatpak-apps/2363) but we haven't tried yet what works for using TexLive in a LabPlot Flatpak. Please let us know if you have any experience.
Comment 2 Stefan Gerlach 2024-04-30 23:36:20 UTC
Should be fixed now in master (upcoming version 2.11). See https://invent.kde.org/education/labplot/-/merge_requests/517