Skip to content

Fix symlink path resolution in File Properties

Kamil Kaznowski requested to merge kaznov/kio:fix_desktop_symlink_follow into master

If a symlink is opened from a virtual path like "desktop:/", the path resolution incorrectly applied absolute UNIX path to the virtual path.

It resulted in an error whenever an "Open directory of symlink target" button was pressed. The absolute symlink path was combined with a protocol: "desktop:/absolute/symlink/path".

Always change the source URL to the Most Local URL first before resolving the symlink.

This bug was very easy to encounter, cause the default way of creating desktop icons (through Application Launcher) creates them as symlinks to existing .desktop files. These symlinks cannot be then followed from File Properties window opened from Desktop.

This is my first contribution, I tried to follow all the guidelines. I hope I did not miss any important step.

@teams/qa

BUG: 476808

Merge request reports

Loading