| Summary: | Mkdir FN bar button does not do tilde expansion | ||
|---|---|---|---|
| Product: | [Applications] krusader | Reporter: | Henryk Hecht <ml> |
| Component: | general | Assignee: | Krusader Bugs Distribution List <krusader-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | alex.bikadorov, krusader-bugs-null, voidpointertonull+bugskdeorg |
| Priority: | NOR | ||
| Version First Reported In: | 2.8.0 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Henryk Hecht
2023-06-23 04:29:27 UTC
Interesting, didn't even know that Mkdir could do more than just creating a directory in the current directory, but `test/test` works creating a nested directory, and even `../test` works creating a directory outside the current one. Even absolute paths work like `/home/username/test` , therefore I'd conclude that the user is right to expect tilde expansion to also work, but I can confirm in the following environment that it doesn't: Operating System: Kubuntu 23.10 KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 It's still not necessarily a bug as tilde expansion is a feature which is definitely not universally supported, therefore I believe that importance should be set to wishlist. The bug priority is probably a matter of project standards, with which I am not familiar. Similar bugs, open and closed, on bugs.kde.org seem to all be "normal". I do not believe there is any governing standard for *nix GUIs here, nor have I done an exhaustive survey, but I did check a few different toolkits and programs, and everything from Tk to JavaFX seems to support tilde expansion where it is applicable. This accords with my own expectation, which is that it should work in (almost) any interactive context. This is a bit of a nuisance to implement, as it is a platform convention without platform support, but Qt, kdelibs, and krusader manage it well (mostly!). Unfortunately, I have not had the time to investigate whether my hypothesis about KIO in the original report is correct; I was hoping someone more familiar with the source and libraries (I haven't really done any KDE development since 3.x) would take a look. I'm considering this to be a feature request. Tilde expansion is a feature of the shell and the current behavior of KIO::mkpath() and KIO::mkdir() of creating a directory named "~" is not exactly wrong. Note that Dolphin does the tilde expansion because it is implemented in KIOs KNewFileMenu (see https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/knewfilemenu.cpp#L1265 ). |