[Libreoffice-bugs] [Bug 122114] Fix hardcoded location for .recently-used file

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jan 15 14:06:09 UTC 2019


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

--- Comment #2 from Stephan Bergmann <sbergman at redhat.com> ---
>From looking at recent master, ~/.recently-used appears to only be used by
shell/source/unix/sysshell/recently_used_file.cxx, which is only used by
shell/source/unix/sysshell/recently_used_file_handler.cxx, which in turn
(through  its exported add_to_recently_used_file_list function) is only used by
X11SalInstance::AddToRecentDocumentList in vcl/unx/generic/app/salinst.cxx. 
The latter is the generic Unix (vclplug_gen) implementation of
SalInstance::AddToRecentDocumentList (vcl/inc/salinst.hxx) introduced in
<https://gerrit.libreoffice.org/plugins/gitiles/core/+/9e18c9ee07c6e8f9a62cdcb0237b183283a275ae%5E!/>
"CWS-TOOLING: integrate CWS cmcfixes62", quoting which: "This function may have
no effect under Unix because there is no standard API among the different
desktop managers."  (Note how AquaSalInstance::AddToRecentDocumentList,
GtkInstance::AddToRecentDocumentList, and
WinSalInstance::AddToRecentDocumentList interface with platform-specific
"recently used document" functionality, while
SvpSalInstance::AddToRecentDocumentList and
Qt5Instance::AddToRecentDocumentList just do nothing.)

It looks like LO itself is not reading ~/.recently-used (for anything but
reading it in to write out a modified version via
X11SalInstance::AddToRecentDocumentList), and I have no idea whether any other
component of a Unix-like system would make use of that file.  My gut feeling is
that it won't hurt to just drop all of this functionality, and make
X11SalInstance::AddToRecentDocumentList do nothing.  (In which case the
reference to .recently-used could probably also be dropped from
sysui/desktop/apparmor/program.soffice.bin.)  Maybe it makes sense to discuss
this on the libreoffice at lists.freedesktop.org mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190115/9f9c65a2/attachment-0001.html>


More information about the Libreoffice-bugs mailing list