Bug 500708 - Kate Flatpak Cannot Save Files under `~/.config/fontconfig/`
Summary: Kate Flatpak Cannot Save Files under `~/.config/fontconfig/`
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 24.12.2
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-25 01:14 UTC by yuntaz
Modified: 2025-03-15 13:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuntaz 2025-02-25 01:14:20 UTC
SUMMARY
Kate Flatpak cannot save existing files or create new files under `~/.config/fontconfig/`. However, Kate Flatpak can save/create files under home and `~/.config`. KWrite (RPM local package) can save/create files in `~/.config/fontconfig/` without error.

STEPS TO REPRODUCE
1. Open the specific file `flatpak run org.kde.kate ~/.config/fontconfig/fonts.conf`
2. Modify it.
3. Try to save the file.

OBSERVED RESULT
Kate fails to save the file with the following error message:
The document could not be saved, as it was not possible to write to /home/myusername/.config/fontconfig/fonts.conf.
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
Successfully save the file.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I did not modify Kate Flatpak permission, and it has all system files access by default.
Comment 1 yuntaz 2025-02-25 01:16:56 UTC
Additionally, I installed Kate from Flathub.
Comment 2 John Kizer 2025-03-14 19:11:29 UTC
Hi - I can't reproduce this issue on a KDE Neon VM. Could you please provide the Linux distribution you're using, and just to double-check, what ownership and permissions are set to for the ~/.config/fontconfig directory?

Thanks!
Comment 3 yuntaz 2025-03-15 02:33:09 UTC
Thank you. I'm using Fedora Linux and permission is set to full system access.
I installed the Kate Flatpak today and gave it another try, and the issue is gone. I had not used the Flatpak version since the bug report, so I am not sure how/when it was fixed.
Comment 4 John Kizer 2025-03-15 13:26:02 UTC
Ah - glad it's working for you, then! Feel free to reopen this if it turns out it's still repeating that behavior somehow.