0.86: Opening subdirectory of directory symbolic link from thumbnails pane changes path to the target of the symlink
Posted: Sat Jun 03, 2017 3:17 am
After browsing to a directory symbolic link, opening a subdirectory from the thumbnails pane causes XnViewMP to change the current directory to the target of the symlink.
For example, create the folder structure and directory symlink from the Windows command-line:
Now watch the current directory textbox as you browse:
The correct behavior is to preserve the path relative to the current directory. If the current directory is a symlink, then the subdirectory should be appended to the symlink path. XnView MP should not traverse the symlink and go to the physical directory.
This is a multiplatform bug. XnView MP has the same problem with directory symlinks on Linux.
For example, create the folder structure and directory symlink from the Windows command-line:
Code: Select all
mkdir parent
mkdir parent\subdir
mklink /d symlink parent
- Browse to the symlink directory. The current directory is: symlink.
- Double-click subdir in the thumbnails pane. The current directory should change to symlink\subdir. However, it actually becomes parent\subdir!
- Go back to the Folders pane and click the + to expand symlink.
- Click on subdir in the Folders pane. The current directory is now correct: symlink\subdir
The correct behavior is to preserve the path relative to the current directory. If the current directory is a symlink, then the subdirectory should be appended to the symlink path. XnView MP should not traverse the symlink and go to the physical directory.
This is a multiplatform bug. XnView MP has the same problem with directory symlinks on Linux.