SUMMARY Bookmarks for a PDF document not found when the document is opened through a symbolic link. STEPS TO REPRODUCE 1. Create a folder ~/dir_x and a symbolic link to it at ~/dir_y. 2. Open file ~/dir_x/file.pdf and create a bookmark. 3. Open the same file through ~/dir_y/file.pdf path, bookmark is not found. POSSIBLE SOLUTION Resolve absolute path when opening a file or compare absolute paths when looking for bookmarks.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/224
Git commit caa351c723c906cb2f675e298a17427928b7abd3 by Albert Astals Cid. Committed on 07/08/2020 at 22:34. Pushed by aacid into branch 'master'. Bookmarks: Resolve symlinks before using an url If a symlink points to another file, we should use that file as canonical source for bookmarks, it doesn't make sense to have two different sets of bookmarks for two paths that are essentially the same file M +34 -14 core/bookmarkmanager.cpp M +14 -14 core/bookmarkmanager.h https://invent.kde.org/graphics/okular/commit/caa351c723c906cb2f675e298a17427928b7abd3