Bug 412621

Summary: Creating a folder in desktop which starts with ":" will create it in home instead of desktop
Product: [Plasma] plasmashell Reporter: Amir <bahmani1998>
Component: Desktop icons & Folder View widgetAssignee: Eike Hein <hein>
Status: CONFIRMED ---    
Severity: normal CC: elvis.angelaccio, kde, kde, kfm-devel, nate, plasma-bugs
Priority: NOR    
Version: 5.16.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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"