dolphin's location bar can't handle url of type '/path/to/some/local///folder'
Review Request #128258 - Created June 20, 2016 and discarded
|Chinmoy Ranjan Pradhan|
When dolphin is launched from terminal with argument of type '/path/to/some/local///folder' or '/path/to/some/local///folder/sub-folder' then location bar on the dolphin only shows path upto 'local' in non-editable mode.
I don't know if the problem is with dolphin or KUrlNavigator but the fix (maybe temporary) is to replace the mutiple slashes with a single slash using QString::split and QStringList::join in global.cpp's validateUris() function. With this patch the final url passed to dolphin will be of form '/path/to/some/local/folder' and the location bar will show the correct full path.
P.S. When in plasma desktop the layout is set to folder view and you open a folder directly from desktop then the path of folder passed to dolphin is of the form "/home/user/Desktop///folder". In editable mode one can see the path as mentioned but in non-editable mode path is only upto Desktop.