Bug 464400

Summary: Allow using ~ (tilde) in folder selection dialog
Product: [Frameworks and Libraries] frameworks-kio Reporter: Grósz Dániel <groszdanielpub>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.101.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Grósz Dániel 2023-01-17 08:43:22 UTC
SUMMARY
In the Select Directory, please allow using ~ to refer to the home directory in the path input field at the bottom. File dialogs (the ones for selecting a file, rather than a folder) support this; they also support using ~user to refer to that user's home directory.


STEPS TO REPRODUCE
1. Open a Select Directory dialog, e.g. kdialog --getexistingdirectory
2. Enter ~ (or a path starting with ~) in the path input at the bottom.
3. Click OK.

OBSERVED RESULT
The selected folder in the tree view doesn't change. If you click OK, the dialog returns the folder previously selected in the tree view.

EXPECTED RESULT
The tree view jumps to the entered folder, just like when you enter a path starting with /. If you click OK, it returns the entered folder.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230115
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11
Graphics Processor: Mesa Intel® UHD Graphics 620