My problem sounds similar to this one, Libreoffice Hangs When Saving - #11 by slumbergod, however I don’t understand the solution well enough to give it a try. Libreoffice 7.5.5.2, calc specifically, is not saving a spreadsheet that I use often. it also takes a really long time for Libreoffice to load when first opening and also hangs when you save and exit. This was not always the case on this computer so something has changed to impact it.
I thought onlyoffice was doing the same thing however I just reinstalled it and it seems to be fine and saving the same spreadsheet without issue. I tried changing my themes in XFCE by searching and pulling up the “Appearance” and “LightDM GTK+ Greeter” apps. I had them matching on theme previously. Right now using Adwaita. It doesn’t seem to make a difference. Like I mentioned, I’m not sure I fully understood that solution if that is even my same problem.
Correction regarding onlyoffice. It is still being buggy as well. It did save some changes I made the first time then I made some more changes and saved and noticed some of my changes from the first time were gone. It’s like both softwares are unpredictable if they will save or not. I have had Libreoffice save a test change sometimes but usually not.
The post is misleading anyways.
If you want to set vcl you only have to do it in one place.
You could set these as a global environment variable in /etc/environment or a few other places …
But lets use the example of the libreoffice start scripts (and I think you are using ‘fresh’)
You can use any of the following, included with some explanation:
gtk3
#GTK3 support
gtk4
#GTK4 support (under heavy development)
kf5
#KF5 support (based on qt5 VCL plugin mentioned below)
gtk3_kde5
#GTK3 support with KDE5 file pickers (alternative to native kf5 one)
qt5
#Qt5 (under construction)
generic
#raw X11 support
The file /etc/profile.d/libreoffice-fresh.sh will have these already, you simply need to remove the comment (#) in front of the line you want to enable.
ex:
# to force a certain look'n feel
#export SAL_USE_VCLPLUGIN=gen
#export SAL_USE_VCLPLUGIN=gtk3_kde5
export SAL_USE_VCLPLUGIN=kf5
#export SAL_USE_VCLPLUGIN=qt5
#export SAL_USE_VCLPLUGIN=qt6
#export SAL_USE_VCLPLUGIN=gtk3
#export SAL_USE_VCLPLUGIN=gtk4
PS. If we dont assume vcl is the problem … then I might suggest a few other things, such as disabling java runtime - doing so is known to speed up libreoffice.
(you can find it in LO > Tools > Options > Advanced)
Only had time so far to try this post. Both were installed, removing portal-gnome fixed the slowness problem, libreoffice launches really fast now and doesn’t hang when saving, however, it is still not saving changes I make.
Examples of changes I’m making are formatting cells changing from numbers to currency or moving/dragging changing the width of columns. Will try other recommended steps soon.
The other command returns nothing. It’s installed right now using Flatpack through the add/remove programs. I can uninstall and reinstall using pacman. I had tried both to see if any difference. Flatpack version 7.5.5.2
Some write (word docs) have been saving good today. Spreadsheet is not saving. I added data to just two cells, clicked save, existed, re-opened and the data is not there.
I should also mention I installed OnlyOffice as well and its having same issues saving changes. Would seem to be an indication of problem bigger then LibreOffice.
After reinstall using Official (extra) I see libeoffice sh file. I unmarked
#export SAL_USE_VCLPLUGIN=gtk3
Rebooted and tried again.
Here is my fix for mine I think though. This popup kept coming up each time on my spreadsheet and when I finally read it it says certain changes won’t be saved. I don’t know how my document got into shared mode (I have no need to share it). After figuring out how to disable it (Tools > Shared Speadsheet) those changes that wouldn’t saved are saving so far. I think that’s it. I’m going to leave this post open bit more to test and make sure.
Thank you everyone for your help and patience with me.