Bug 429922

Summary: Mark no longer available bookmarks
Product: [Applications] okular Reporter: postix <postix>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, nate, postix
Priority: NOR Keywords: usability
Version: 1.11.3   
Target Milestone: ---   
Platform: Other   
OS: Other   
See Also: https://bugs.kde.org/show_bug.cgi?id=380330
Latest Commit: Version Fixed In:

Description postix 2020-12-02 12:23:46 UTC
If you create bookmarks to some PDFs and afterwards delete the PDF or move it to another place, there's no way to know if a bookmark is still valid.

First if you try to open it, Okular will tell you in a dialog that it's not available.

Therefore it would be convenient if Okular checked those bookmarks 
e.g. on start, when the bookmark tab is opened, when the user tries to open an invalid bookmark, etc.
and if not available marks those in some way, e.g. with a gray font or striked out.
Comment 1 Nate Graham 2020-12-03 15:34:40 UTC
Would be nice. See also Bug 380330.
Comment 2 Albert Astals Cid 2020-12-03 22:10:42 UTC
Sorry but that is not a good idea, if you have 10000 files, do we have to stat the 10000 files when you start Okular?

What if those 10000 files are on the internet, do you want to do 10000 connections to see if the files are still there?

More over, why only check on application start? The files the bookmarks point can be removed at any point of time, can't they?

So we would need to install 10000 file monitors just in case you remove the files.

This is just not possible.
Comment 3 postix 2020-12-03 22:19:06 UTC
Wow, I doubt someone is using Okular's bookmarks to this extent or do you? :)
Having around 30 booksmarks I already found cumbersome to manage, but 10,000 sources?

Are we talking about the same topic? 

I was talking about reference to pages in PDFs (rightclick, bookmark). I would also not know how you'd bookmark websites at all.
Comment 4 postix 2020-12-03 22:21:56 UTC
Sorry, please forget about out the comment about websites -- I misread it.
Comment 5 postix 2020-12-03 22:25:58 UTC
Maybe this could then be triggered manually and the user could mark a bookmark as non-local to exclude it or to mark it in a different way? I mean, somehow you need to manage your 10,000 bookmarks. ;)