This is related to https://bugs.kde.org/show_bug.cgi?id=352927. src/ioslaves/file/file.cpp has been fixed by using readlink instead of symlinkTarget(), but src/core/kfileitem.cpp still uses QFile::symLinkTarget(). For that reason, under certain circumstances, Dolphin's properties dialog will show the target of the symbolic link as an absolute path even though it is actually a relative path. Is it ok to copy the same code as src/ioslaves/file/file.cpp? Or how can it avoid duplication of code? Thanks.
Yes, please go ahead. You can submit a patch if you'd like! See https://community.kde.org/Infrastructure/Phabricator If there are issues with your approach, that's what code review is for :)