Bug 321880 - Okular keeps reloading the opened document when opened through symlink if updating another file in same folder of symlink.
Summary: Okular keeps reloading the opened document when opened through symlink if upd...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.4
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 00:04 UTC by Unknown
Modified: 2013-07-19 22:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2013-07-03 00:04:03 UTC
Okular keeps reloading the opened document and its CPU usage jumps to about 50% when the document is opened through symlink and a file being updated in the same folder of symlink.


Reproducible: Always

Steps to Reproduce:
1. Symlink a document (I tried both PDF & PS, the same problem)
2. Update a file (e.g. copy or download reasonably big file in the same folder of symlink, it should be big enough to take time to notice the problem, a file of > 100 MB is ok) in the same folder of symlink.
Actual Results:  
Okular keeps reloading the document and its CPU usage jumps to about 50% until the update in the file in this directory finishes.
Comment 1 Albert Astals Cid 2013-07-03 22:30:01 UTC
It only dows it once here, but i guess it depends on how the download manager you use works, anyway it should not reload the document when something that is *not* the document changes. Should not be hard to fix, unfortunately i don't have much time at the moment so it may take a while.
Comment 2 Albert Astals Cid 2013-07-19 22:29:51 UTC
Git commit 4032f0a38ad576dbfa3ac97be058720d2cb9cb22 by Albert Astals Cid.
Committed on 19/07/2013 at 22:29.
Pushed by aacid into branch 'KDE/4.11'.

Only reload if the changed file is our file

And not any other file in the folder
FIXED-IN: 4.11.0

M  +1    -1    part.cpp

http://commits.kde.org/okular/4032f0a38ad576dbfa3ac97be058720d2cb9cb22