Bug 487203

Summary: flatpak: cannot open kmail mail attachments with default apps or any other app
Product: [Applications] kontact Reporter: Robert Riemann <robert>
Component: mailAssignee: kdepim bugs <kdepim-bugs>
Status: ASSIGNED ---    
Severity: normal    
Priority: NOR    
Version: 6.0.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: first dialogue happens when clicking on pdf attachment, second one when clicking on open with

Description Robert Riemann 2024-05-18 20:35:16 UTC
Created attachment 169601 [details]
first dialogue happens when clicking on pdf attachment, second one when clicking on open with

SUMMARY

I have Kontact with Kmail installed as Flatpak from fedora flatpak repository. When I receive pdfs as attachment, I cannot open them with okular without saving them first to disk. Same issue for any other attachment types.


STEPS TO REPRODUCE
1.  receive an email with pdf attachment (or other file)
2.  click on them for open
3. notice that okular is not an option and app chooser is basically empty

OBSERVED RESULT

Cannot open with okular

EXPECTED RESULT

flatpak aplication chooser portal opens and permits to open file with okular

ADDITIONAL INFORMATION

Related Discussion at https://discussion.fedoraproject.org/t/evolution-flatpak-cant-open-pdf-from-attachments-when-composing-email/24230

Related flatpak bug concerning composing mails with attachment: while granting kontact access to all system files may be good workaround, it would be better to rely on the flatpak open file portal: https://bugs.kde.org/show_bug.cgi?id=486838
Comment 1 Robert Riemann 2024-06-10 20:25:26 UTC
I have switched to the flatpak from the flathub repository at https://github.com/flathub/org.kde.kontact . Same problem with the version 5.24.4
Comment 2 Bug Janitor Service 2024-08-16 21:00:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1690