Bug 515155

Summary: Kate flatpak opens files inside flatpak when using cmdline arguments
Product: [Applications] kate Reporter: Helga <strike0347>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: sitter
Priority: NOR    
Version First Reported In: 25.12.1   
Target Milestone: ---   
Platform: KDE Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Helga 2026-01-27 14:59:29 UTC
SUMMARY
If the Flatpak version of Kate opens a file from Dolphin (xdg-open) or using the File->Open filepicker, system files open correctly. If files are opened from terminal, they'll open the versions of those files from inside the flatpak itself

STEPS TO REPRODUCE
1. Open terminal application
2. execute: flatpak run org.kde.kate /etc/os-release
3. Check the contents of the opened Kate window

OBSERVED RESULT
Kate opens the /etc/os-release of the Flatpak environment, e.g. it starts with: 
NAME="KDE Flatpak runtime"

EXPECTED RESULT
Kate opens the correct /etc/os-release for the OS it's in - in my case, KDE Linux.

SOFTWARE/OS VERSIONS
KDE Linux: Testing 2026-01-27
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
This issue also reproduces in Ubuntu 25.10 with the same Kate 25.12.1 flatpak
Comment 1 Harald Sitter 2026-01-28 11:23:23 UTC
You have to tell flatpak to use --file-forwarding. See the flatpak documentation. Nothing we control unfortunately.