LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-26-2020, 01:59 PM   #16
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Original Poster
Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841

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
 
2 members found this post helpful.
Old 03-26-2020, 03:10 PM   #17
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,182
Blog Entries: 11

Rep: Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357
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?
 
Old 03-26-2020, 04:55 PM   #18
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Original Poster
Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
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?

Last edited by upnort; 03-26-2020 at 04:57 PM.
 
Old 03-27-2020, 05:54 AM   #19
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,182
Blog Entries: 11

Rep: Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357Reputation: 2357
Quote:
Originally Posted by upnort View Post
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.
 
Old 03-27-2020, 10:50 AM   #20
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Original Poster
Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
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.
 
Old 03-28-2020, 01:36 PM   #21
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS
Posts: 1,519

Original Poster
Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
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.

Last edited by upnort; 03-28-2020 at 01:39 PM.
 
Old 03-28-2020, 01:49 PM   #22
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,182
Blog Entries: 11

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LibreOffice REALLY slow to launch. rnturn SUSE / openSUSE 7 09-01-2019 04:01 PM
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 02:37 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 02:50 PM
Slow name resolving _and_ slow konsole launch dangerbaby Mandriva 7 03-03-2005 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration