No /etc/profile.d/ or /etc/profile.d/ files

I am trying to get to the situation where I don’t have to type in the terminal each time SAL_USE_VCLPLUGIN=gen libreoffice to get lagless libreoffice but I can just write libreoffice to get the lagless libreoffice, I wanted to enable that in one of those files as the wiki told me so. I got libreoffice with the standard installation of Kubuntu.

OS: NAME=“Ubuntu” VERSION=“20.10 (Groovy Gorilla)”

LibreOffice version:

Please edit your question to explain what “Was trying to permanently change the style” means?

Are you trying to customise default font face, size, weight, …? default paragraph properties? other formatting properties? All these to meet your personal preferences?

Why are you looking in /etc/profile.d/ ?

If you want no integration into KDE/Plasma/GNOME etc environments at all, then simply remove libreoffice-gtk3,libreoffice-kde5 and libreoffice-kf5 packages using sudo apt purge --yes libreoffice-gtk3 libreoffice-kde5 libreoffice-kf5 and you’ll automatically get VCL=x11 (which is the result of SAL_USE_VCLPLUGIN=gen environment variable) as fallback.

Don’t try to fiddle with the launching scripts. The mistakes you could make will be worse than the problem.

Instead customise the KDE menu to launch applications.

  • Right-click on the KDE application menu icon to choose Modify applications (or equivalent)
  • Navigate to find the LO entries. Click on each in its turn.
  • You now access the properties of the launcher. One of these is Command with libreoffice –<component_name> %U
  • Prefix it with SAL_USE_VCLPLUGIN=gen
  • Save

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

This writer is super annoying, I gotta start dual booting Windows.

It isn’t LO fault. I’d rather blame a mistake in your installation. You’ll meet other and more numerous issues under Windows.