Bug 510057

Summary: Polkit-based authentication not working in Flatpak build
Product: [Applications] kate Reporter: Nate Graham <nate>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2025-09-29 15:02:46 UTC
STEPS TO REPRODUCE
1. Install Kate from nightly flatpak build: https://cdn.kde.org/flatpak/kate-nightly/org.kde.kate.flatpakref
2. `flatpak run org.kde.kate`
3. In Kate, open /etc/environment
4. Edit the file and try to save


OBSERVED RESULT
An error dialog saying:

The document could not be saved, as it was not possible to write to /run/user/1000/doc/2158b559/environment.
Check that you have write access to this file or that enough disk space is available.
The original file may be lost or damaged. Don't quit the application until the file is successfully written.


EXPECTED RESULT
Polkit-based prompt for authentication


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2025-09-25
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics