summaryrefslogtreecommitdiffstats
path: root/kioslave/system
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/system')
-rw-r--r--kioslave/system/systemimpl.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/kioslave/system/systemimpl.cpp b/kioslave/system/systemimpl.cpp
index f773dc20e..46214ce20 100644
--- a/kioslave/system/systemimpl.cpp
+++ b/kioslave/system/systemimpl.cpp
@@ -228,8 +228,16 @@ void SystemImpl::createEntry(KIO::UDSEntry &entry,
QString new_filename = file;
new_filename.truncate(file.length()-8);
- addAtom(entry, KIO::UDS_URL, 0, "system:/"+new_filename);
+ if ( desktop.readURL().isEmpty() )
+ {
+ addAtom(entry, KIO::UDS_URL, 0, desktop.readPath());
+ }
+ else
+ {
+ addAtom(entry, KIO::UDS_URL, 0, "system:/"+new_filename);
+ }
+
addAtom(entry, KIO::UDS_FILE_TYPE, S_IFDIR);
addAtom(entry, KIO::UDS_MIME_TYPE, 0, "inode/directory");