Dolphin doesn't seem to respect the relative paths on symbolic links. Whenever I create a symbolic link with the command ln -s (I don't use the context menu) and then copy this link to the desired folder the link while working contains the absolute path of the target file. Where the link should be: target: ../../../file It actually is: target: /home/$user/folder/file Reproducible: Always Steps to Reproduce: 1. Create a file 2. Create a link with ln -s 3. Copy with Ctrl+C and paste with Ctrl+V Actual Results: Link copied contains absolute path of the target file. Expected Results: Link should have the relative path of the target file. This happens with PCManFM Qt too but not the GTK version. This behavior didn't happen in previous versions of Dolphin (like 4.14.x) either.
Thanks for the bug report. I can confirm this behavior. I cannot comment on whether this change is intended or not. I assume that this could be due to a change in the KIO library, which Dolphin and other KDE applications use for copying files.
Indeed this didn't happen in the kdelibs4 version of Dolphin.
Nice, QFileInfo::symlinkTarget() always returns an absolute path, and there's no function in Qt for reading the relative symlink target. I'll use readlink....
https://git.reviewboard.kde.org/r/125515/
Git commit f2c96d1550f22600f1b6dee74851c25a3f733ef4 by David Faure. Committed on 24/10/2015 at 18:01. Pushed by dfaure into branch 'master'. Preserve relative link targets when copying symlinks. REVIEW: 125515 FIXED-IN: 5.16 Change-Id: I7d3c988da32cae9d14750c8adb9ca5af6d140572 M +59 -0 autotests/jobtest.cpp M +2 -0 autotests/jobtest.h M +12 -1 src/ioslaves/file/file.cpp http://commits.kde.org/kio/f2c96d1550f22600f1b6dee74851c25a3f733ef4
Why on Dolphin bugged symlinks??? I create symlink New - Symbolic Link Link: Folder2 Path: ../../Folder Open preferncies Folder2 and see link: /home/user/folder/.../.../folder What is this? Why not save real name ../../folder?
varlesh: please open new bug reports for unrelated problems. This bug report was about *copying* symlinks, your report is about *creating* symlinks. I can confirm the bug and I'm looking into it, but please don't hijack existing bug reports for new issues. Can you open a new bug report?