[okular] [Bug 402017] Cannot save PDF when loaded file has been deleted

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Apr 16 00:28:55 BST 2021


https://bugs.kde.org/show_bug.cgi?id=402017

kingfati4 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kingfati4 at gmail.com

--- Comment #62 from kingfati4 at gmail.com ---
(In reply to Karl from comment #59)
> This bug is a pain.. 
> 
> I found a way to recover using PV .. a work-around
> 
> 1) find the process+fd by looking directly in /proc:
> 
> ls -al /proc/*/fd/* 2>/dev/null | grep {filename}
> 
> 2) Then with pv thrown in:
> 
> tail -c +0 -f /proc/{procnum}/fd/{fdnum} | pv -s {expectedsize} >
> {recovery_filename}
> 
> You may need to Ctrl-C when done (ls /proc/{procnum}/fd/{fdnum} will tell
> you that the file no longer exists)), but if you know the exact size in
> bytes, you can use pv -S to make it exit when the count is reached.


This bug has caused me a lot of troubles, lost nerves and data, incredibly
frustrating that this is ongoing for 3 years. I'm happy you were able to find a
workaround. Can you maybe give a further explanation? Are you supposed to close
Okular throughout? I tried copying into another directory using
{recovery_filename}, but the progress chart does not move. I'm not able to
create files inside that folder either. It keeps being stuck at 0Bytes and does
not change.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list