A trick to save time on LibreOffice startup. Idea is to prevent LibreOffice daemon from exiting by establishing idle UNO connection.
- LibreOffice
- JDK (tested on version 8, but probably almost any version will suffice)
- SystemD (optional, used for managing the daemon processes)
-
Clone this repository.
-
Run
make
to compile the java code. -
Copy
libreoffice.service
andlibreoffice-termination-blocker.service
to~/.config/systemd/user/
. -
Edit
WorkingDirectory=
entry inlibreoffice-termination-blocker.service
to point to TerminationBlocker.class location. -
Run
systemctl --user enable --now libreoffice
andsystemctl --user enable --now libreoffice-termination-blocker
.