LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LibreOffice Slow to Launch (https://www.linuxquestions.org/questions/slackware-14/libreoffice-slow-to-launch-4175671055/)

upnort 03-26-2020 01:59 PM

This issue is resolved! Queue in some drama queen soap opera music and enjoy the story. You might be surprised at the ending. :)

LibreOffice Slow to Launch

hazel 03-26-2020 03:10 PM

That doesn't seem to apply to my system. I don't have noto-fonts installed and I haven't disabled the fc-cache run on startup (all my rc scripts are as written). So why does Libreoffice start so slowly on my machine?

upnort 03-26-2020 04:55 PM

I don't know Hazel. What are the hard disk specs? Spinner? SATA II?

Do you have any large font collections?

With root privileges run fc-cache -v -f. The output will show any large font directories.

P.S. After booting, do not launch LO. Open a terminal window and run:

libreoffice6.2 --quickstart --nologo --nodefault &

Wait several seconds and then launch LO normally. Any faster?

hazel 03-27-2020 05:54 AM

Quote:

Originally Posted by upnort (Post 6104743)
I don't know Hazel. What are the hard disk specs? Spinner? SATA II?

Spinning rust SATA drive. It's an old machine.
Quote:

Do you have any large font collections?
With root privileges run fc-cache -v -f.
Code:

/usr/share/fonts/OTF: caching, new cache contents: 34 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 37 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 48 fonts, 0 dirs
/usr/share/fonts/Speedo: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cyrillic: skipping, no such directory
/usr/share/fonts/misc: caching, new cache contents: 1 fonts, 0 dirs
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

Quote:

P.S. After booting, do not launch LO. Open a terminal window and run:

libreoffice6.2 --quickstart --nologo --nodefault &

Wait several seconds and then launch LO normally. Any faster?
On my machine, the command is "soffice". And that works! Total startup time (up to appearance of the window toolbar) is 15 seconds.

upnort 03-27-2020 10:50 AM

Quote:

Spinning rust SATA drive. It's an old machine.
Likely that is the biggest reason. I have some older dual core SATA II systems collecting dust here. I'll try to find time to test LO on one of them and share the results.

upnort 03-28-2020 01:36 PM

Hazel,

I cloned my hard disk to a SATA II disk and installed on an older dual core SATA II system.

After boot and first launch: ~9.3 seconds
Subsequent launches: ~1.9 seconds
After flushing the disk cache: ~15.4 seconds
Subsequent launches: ~1.9 seconds

I launched from a terminal window using the time command. As soon as the window appeared I pressed Alt+F4 to close to terminate the command. The times are imperfect but more than acceptable for this type of troubleshooting, within a few tenths of a second.

I don't if that helps.

In my excursion to debug on my system I found the old quick start launcher from an earlier version of LO. Place the file in $HOME/.config/autostart/qstart.desktop. Edit the file for your system.

Code:

[Desktop Entry]
Terminal=false
Type=Application
Exec=libreoffice6.3 --quickstart --nologo --nodefault
NoDisplay=true
Name=LibreOffice 6.3 Quickstarter
Comment=Hook for quickstarter startup
X-GIO-NoFuse=true
Icon=libreoffice6.3-main

Upon starting the desktop there should be a LO process running. The quick start option is good only for the first launch. When LO launches the quick start process is terminated.

If logging out from a desktop session without launching LO, there might be dialogs about the running quick start process. I saw this a couple of times but did not investigate.

hazel 03-28-2020 01:49 PM

Simpler to just put the command in the Fluxbox startup file. I'll do that.


All times are GMT -5. The time now is 08:28 PM.