Bug 490064

Summary: File chooser in directory mode does not default to current directory, making it near-unusable on single-click-to-open systems
Product: [Plasma] xdg-desktop-portal-kde Reporter: Quinten Kock <quinten>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol, jgrulich, nate
Priority: NOR    
Version First Reported In: 6.1.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Quinten Kock 2024-07-11 01:25:44 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When opening a directory through xdg-desktop-portal's File Chooser API, the picker handles this quite badly. 

On my system, which is single-click-to-open, I have to click the folder I want, then I have two options:
- Go up, then the folder I want is selected, then click the OK button
- or type '.' into the filename bar and then hit OK.

Hitting OK while in a folder does not actually do anything.

STEPS TO REPRODUCE
1. Have single-click-to-open
2. Try to open a folder using xdg-desktop-portal (e.g. with ashpd demo, I originally discovered the issue using Zed)
3. Try to open the current directory

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Folder is selected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Wayland

ADDITIONAL INFORMATION
I'm not sure what the right behaviour here is, since when something is selected the selected folder would be picked. But probably this is fine, iirc Windows does the same thing where the current folder is just what gets picked when nothing is selected?
Comment 1 Nate Graham 2024-07-23 18:14:55 UTC
Could you maybe attach a screen recording that shows the issue, so I can make sure the app is using the portal API properly?
Comment 2 Bug Janitor Service 2024-08-07 03:46:39 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-08-22 03:47:37 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.