Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapd-desktop-integration not triggering on light/dark variants #16

Open
hellsworth opened this issue Aug 17, 2022 · 1 comment · Fixed by ubuntu-mate/gtk-theme-yaru-mate-snap#2

Comments

@hellsworth
Copy link

When you install ubuntu-mate-themes:

$ sudo apt install ubuntu-mate-themes

Then in gnome-tweaks you see 3 available options:

  • Yaru MATE
  • Yaru MATE light
  • Yaru MATE dark

snapd-desktop-integration prompts the user to install the "missing snaps" (gtk-theme-yaru-mate) only if the "Yaru MATE" variant is selected.

Then you see that the greedy plugs have auto-connected the content snap:

heather@jammy:~$ snap connections gnome-calculator
Interface                 Plug                              Slot                               Notes
content[gnome-3-38-2004]  gnome-calculator:gnome-3-38-2004  gnome-3-38-2004:gnome-3-38-2004    -
content[gtk-3-themes]     gnome-calculator:gtk-3-themes     gtk-common-themes:gtk-3-themes     -
content[gtk-3-themes]     gnome-calculator:gtk-3-themes     gtk-theme-windows:gtk-3-themes     manual
content[gtk-3-themes]     gnome-calculator:gtk-3-themes     gtk-theme-yaru-mate:gtk-3-themes   -
content[icon-themes]      gnome-calculator:icon-themes      gtk-common-themes:icon-themes      -
content[sound-themes]     gnome-calculator:sound-themes     gtk-common-themes:sound-themes     -
dbus                      -                                 gnome-calculator:gnome-calculator  -
desktop                   gnome-calculator:desktop          :desktop                           -
desktop-legacy            gnome-calculator:desktop-legacy   :desktop-legacy                    -
gsettings                 gnome-calculator:gsettings        :gsettings                         -
network                   gnome-calculator:network          :network                           -
network-status            gnome-calculator:network-status   :network-status                    -
opengl                    gnome-calculator:opengl           :opengl                            -
wayland                   gnome-calculator:wayland          :wayland                           -
x11                       gnome-calculator:x11              :x11                               -

But yet, gnome-calculator defaults to libadwaita.
Screenshot from 2022-08-17 15-29-03

In order to actually apply the MATE theme, you need to choose either "Yaru MATE light" or "Yaru MATE dark"

@sergio-costas
Copy link
Contributor

This is quite more complex than it seems... the snap API always returns "AVAILABLE" (and thus, not installed) for YARU-MATE, no matter if it is installed or not; and it always returns "INSTALLED" for YARU-MATE-dark and YARU-MATE-light...

sergio-costas added a commit to sergio-costas/gtk-theme-yaru-mate-snap that referenced this issue Oct 25, 2022
When installing ubuntu-mate-themes, three themes are added to
the list available in gnome-tweaks: Yaru MATE, Yaru MATE light
and Yaru MATE dark. Unfortunately, the current snap for Yaru
MATE themes only exports the light and dark variants, but not
the "generic" one. The result is that selecting Yaru MATE in
gnome tweaks always asks to download gtk-theme-yaru-mate, no
matter that it is already installed, and the theme doesn't
work on snap applications.

This patch fixes this.

Fix snapcore/snapd-desktop-integration#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants