Bug 508197

Summary: Gwenview does not seem to properly use portal for "save as", only shows in-sandbox files
Product: [Applications] gwenview Reporter: yoga-cortex-justly
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description yoga-cortex-justly 2025-08-13 13:42:28 UTC
Without explicit file system access permission, Gwenview (Flatpak) properly uses portals for opening files, but does not seem to do so successfully when choosing location to save as. This is contrary to other KDE apps, like kate, where this works properly. This makes it necessary to give overly broad permissions like full "/home" access.

When choosing "save as", the file dialogue shows up, but it does not display any user files and only shows the files accessible within its own sandbox. Proper portal usage should display all user accessible files/folders instead.

STEPS TO REPRODUCE
1. Use Gwenview as a Flatpak
2. Deny all file access via KDE settings app or Flatseal
3. "Ctrl+o" to open file dialogue and open a file (works)
4. "Ctrl+Shift+s" to open file dialogue and see that only in-sandbox files/folders are accessible.

OBSERVED RESULT
"Ctrl+Shift+s" to open "save as" file dialogue and see that only in-sandbox files/folders are accessible.

EXPECTED RESULT
"Ctrl+Shift+s" to open "save as" file dialogue and show all user-accessible files (e.g. home folder).

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0 
Qt Version:  6.9.1

ADDITIONAL INFORMATION
Flatpak Gwenview Version 25.04.3