[snap] Libreoffice uses the adwaita gtk theme

Bug #1748429 reported by Frederik Feichtmeier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Ubuntu 17.10

Installed the snap via

https://forum.snapcraft.io/t/call-for-testing-libreoffice-6-0-0/3917
sudo snap install libreoffice --candidate

____

Libreoffice 6 snap uses adwaita gtk

Libreoffice 6 snap uses a hard path to the icon instead of the freedesktop spec

Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :
Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Regarding the icon path, that's expected: if the icon was set to "libreoffice-writer", the deb package for libreoffice wasn't installed, and the current theme didn't have an icon for libreoffice-writer (on my setup only the HighContrast theme has one), then the shell wouldn't be able to display an icon for the app. Snaps can't install icons under /usr/share/icons/, and the shell isn't aware of icons shipped inside snaps.

Revision history for this message
Olivier Tilloy (osomon) wrote :

What theme does the rest of your desktop use?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :

GTK Community theme (https://github.com/Ubuntu/gtk-communitheme)- I see - changing to ambiance did the trick. Now the snap uses the ambiance gtk theme.

The theme matching works only for ambiance?

___

Regarding the icons, most debs - if not all - use the free desktop spec. And it works very well with Humanity icon set (which inherits hicolor in it's index) 99% of the apps work with relative icon paths, even if they are snaps. (this is just a user impression, I got no deeper understanding of how this works)

Olivier Tilloy (osomon)
summary: - Librroffice Snap uses the adwaita gtk theme and direct path to icon
+ [snap] Libreoffice uses the adwaita gtk theme and direct path to icon
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: [snap] Libreoffice uses the adwaita gtk theme and direct path to icon

> The theme matching works only for ambiance?

It works only for the themes that are shipped within the snap.
As of today, for the libreoffice snap those are:

    $ ls /snap/libreoffice/current/usr/share/themes/
    Adwaita Ambiance Default Emacs Radiance Raleigh

That will eventually be fixed, but it will take some time.
For an explanation of why, see https://forum.snapcraft.io/t/use-the-system-gtk-theme/496.

When the theme used by your desktop is not found in the snap, I believe it falls back to the first one in the list, which happens to be Adwaita.

Revision history for this message
Olivier Tilloy (osomon) wrote :

> Regarding the icons, most debs - if not all - use the free desktop
> spec. And it works very well with Humanity icon set (which inherits
> hicolor in it's index) 99% of the apps work with relative icon paths,
> even if they are snaps. (this is just a user impression, I got no
> deeper understanding of how this works)

The Humanity icon set doesn't have icons for libreoffice. So if you uninstall the libreoffice debs and install the snap, Icon=libreoffice-writer will get you the only icon available on the system, which will be the hicolor one.
In general, snaps need to ship all the resources they need, they shouldn't rely on the host system providing icons for them.

summary: - [snap] Libreoffice uses the adwaita gtk theme and direct path to icon
+ [snap] Libreoffice uses the adwaita gtk theme
Revision history for this message
Olivier Tilloy (osomon) wrote :

I have updated the title of the bug to refer to the issue with themes only.

Changed in libreoffice (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Mohammad Anwar Shah (mohammadanwarshah) wrote :

Is there any update for this bug? This is unbearably ugly on other Linux distros not having Ambiance etc, especially on KDE

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Is this still an issue? Please run `snap connections` and ensure that the following appears in the output:

content[gtk-3-themes] libreoffice:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] libreoffice:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] libreoffice:sound-themes gtk-common-themes:sound-themes -

If not, you'll need to run `snap install gtk-common-themes` to install the required themes. Then try LibreOffice again to see if there is any improvement.

Changed in libreoffice (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :

Hi there! No this is no longer happening on new LO snap installations :)

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Awesome, thanks for confirming :)

Changed in libreoffice (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.