ubuntu / libreoffice

This repository hosts the snap info to package up the Libreoffice snap.
https://snapcraft.io/libreoffice
20 stars 11 forks source link

Libreoffice Snap Cannot Find GTK Theme #26

Open AnAlligatorPear opened 1 year ago

AnAlligatorPear commented 1 year ago

Hi, Libreoffice snap currently cannot find system theme and defaults to white.

In the regular libreoffice application, there's an ability to uncomment env variable and switch to:

SAL_USE_VCLPLUGIN=gtk3 This forces the application to use GTK theme

Is there a way I can modify an env variable in the snap to do this?

ghost commented 9 months ago

Is this still the case ? , usually desired themes are provided by gtk-common-themes snap package , if it can't find your theme most probably either the theme isn't available as a snapped version or some config error like i faced in Lubuntu (Lxqt) regarding gtk theming.

Regarding the environment variable, the snap i believe uses gtk3 or gtk4 as default variable and hence shouldn't be an issue.

You do can change environment variables of snap temporarily, refer : https://snapcraft.io/docs/environment-variables

To make it permanent i believe you should create a startup file or something like that.

AnAlligatorPear commented 9 months ago

This is still the case, works with .deb install package but not with snap. I have yet to try the snap env variable but will give it a shot and report back