Bug 515155 - Kate flatpak opens files inside flatpak when using cmdline arguments
Summary: Kate flatpak opens files inside flatpak when using cmdline arguments
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.12.1
Platform: KDE Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-27 14:59 UTC by Helga
Modified: 2026-01-28 11:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.