https://bugs.documentfoundation.org/show_bug.cgi?id=167937

            Bug ID: 167937
           Summary: Automatically delete no longer existing documents from
                    LO’s elephant memory
                    ~/.config/libreoffice/4/user/registrymodifications.xcu
           Product: LibreOffice
           Version: 26.2.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

LO’s elephant memory ~/.config/libreoffice/4/user/registrymodifications.xcu may
contain links to no longer existing documents. E.g. after renaming them. This
makes this already very complex file unnecessarily large.
Also the elephant’s memory might contain different ways of paths to identical
files, e.g. by opening documents through link files (the link is recorded, not
the target). I already discussed that in
https://bugs.documentfoundation.org/show_bug.cgi?id=167935

Remedy: When accessing the elephant’s memory (i.e. after reading and before
writing), all pointers to documents should automatically be checked for no
longer existing ones (e.g. after a file or any directory on its path has been
renamed). No longer existing paths should automatically be discarded from the
elephant’s memory.

In addition, see #167935, I also suggest to feed the path of each to be opened
document (command line, File>… dialogs, …) first through the well known
function realpath. Before LibreOffice actually does anything with the document.
realpath returns a normalized path to the file to be opened.

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

Reply via email to