Bug 412621 - Creating a folder in desktop which starts with ":" will create it in home instead of desktop
Summary: Creating a folder in desktop which starts with ":" will create it in home ins...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.16.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-04 22:22 UTC by Amir
Modified: 2019-10-11 01:30 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amir 2019-10-04 22:22:14 UTC
SUMMARY


STEPS TO REPRODUCE
1. Go in Desktop (Actual desktop not Desktop folder)
2. Right click -> Create New -> Folder...
3. Write a name for folder that starts with ":" (colon)

OBSERVED RESULT
Folder created in $HOME

EXPECTED RESULT
folder should be in ~/Desktop

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

ADDITIONAL INFORMATION
Comment 1 Kai Uwe Broulik 2019-10-07 08:04:54 UTC
Also happens in Dolphin when doing the same in desktop:/, looks like a bug in the desktop slave, not Folder View.
Comment 2 David Edmundson 2019-10-11 01:21:48 UTC
Some finds:

It doesn't created it in your home folder, it gets created in the CWD.

It's not unique to desktop:// if you make a folder in file:///home/david/foo   called :something it still goes into another folder
Comment 3 David Edmundson 2019-10-11 01:30:36 UTC
It goes in this path

        if (QDir::isAbsolutePath(name)) {
            url = QUrl::fromLocalFile(name);


which exists if you click mkdir and then type (for some reason) "/home/david/fullpath/fullpath'


input ":foo" ends up with the final url ends up being "file::foo"