Saturday, January 13, 2024

Extremely slow LibreOffice 7 startup finally solved

Few days ago to my utmost relief I finally figured out why LibreOffice had been taking several minutes to open on all of my Linux installations. In a nutshell the problem was blindly deploying the all-repository-fonts package to every system that had AUR support ie. having too many fonts installed at once.

With the above package installed using `time libreoffice --nologo --safe-mode` it took 58 seconds on a more than capable desktop computer for LO to open, and over three minutes on a relatively new t480s laptop.

After removing the package and entering `fc-cache -f -v` to reset the system font cache, LO once again opens in under a second on both machines. On the desktop without the mentioned package `fc-list | wc -l` now reports 3566 fonts installed down from over ten thousandish, the laptop reporting 1750 fonts installed down from six thousandish.

In hindsight it's disappointing LibreOffice doesn't print any output or status of what it's currently loading to the splash screen (unlike decent software such as gimp).

No comments:

Post a Comment

Extremely slow LibreOffice 7 startup finally solved

Few days ago to my utmost relief I finally figured out why LibreOffice had been taking several minutes to open on all of my Linux installati...