Dawit A. adawit at kde.org
Mon May 10 02:10:38 BST 2004

Is there any specific reason why the following code is needed in 
KDirOperator::setURL(...)  ?

QString pathstr = newurl.path(+1);

It breaks io-slaves that provide remote "path adjustment" based on login 
information. For example, if you type "sftp://localhost" into KFileDialog's 
path combo box, the directory you end up in should be the home directory of 
the user you logged in as. Unfortunately, the above code explicitly appends a 
"/", preventing the io-slave from even attempting to determine the correct 
path. What it also means is that regardless of how you login into remote 
machines, if you do not specify a specific path, you will always end up in 
the "/" directory. Compare this behavior with what happens if you type in the 
same address in Konqueror.

Can the above code be removed or in the least limited to local protocol 
(file) ?

Dawit A.
"Preach what you practice, practice what you preach"

More information about the kde-core-devel mailing list