Auto-connect and greedy plug behaviour for for gtk-common-themes and gtk-theme-traditionalhumanized snaps

Thanks for doing this. I can see the updated snap-declaration assertions, and it appears to be behaving as expected. With just gtk-common-themes installed:

$ snap connections snap-store | grep gtk-3-themes
content[gtk-3-themes]     snap-store:gtk-3-themes                   gtk-common-themes:gtk-3-themes   -
$ snap run --shell snap-store
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
$ ls $SNAP/data-dir/themes
Adwaita		   Communitheme-light  Materia-compact
Adwaita-dark	   elementary	       Materia-dark
Ambiance	   Greybird	       Materia-dark-compact
Ambiant-MATE	   Greybird-dark       Materia-light
Ambiant-MATE-Dark  HighContrast        Materia-light-compact
Arc		   Matcha-aliz	       Radiance
Arc-Dark	   Matcha-azul	       Radiant-MATE
Arc-Darker	   Matcha-dark-aliz    Yaru
Breeze		   Matcha-dark-azul    Yaru-dark
Breeze-Dark	   Matcha-dark-sea     Yaru-light
Communitheme	   Matcha-sea
Communitheme-dark  Materia

Now installing gtk-theme-traditionalhumanized:

$ snap install --edge gtk-theme-traditionalhumanized
gtk-theme-traditionalhumanized (edge) 0 from Ken VanDine installed
$ snap connections snap-store | grep gtk-3-themes
content[gtk-3-themes]     snap-store:gtk-3-themes                   gtk-common-themes:gtk-3-themes               -
content[gtk-3-themes]     snap-store:gtk-3-themes                   gtk-theme-traditionalhumanized:gtk-3-themes  -
$ snap run --shell snap-store
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
$ ls $SNAP/data-dir/themes
Adwaita		   Communitheme-light  Materia-compact
Adwaita-dark	   elementary	       Materia-dark
Ambiance	   Greybird	       Materia-dark-compact
Ambiant-MATE	   Greybird-dark       Materia-light
Ambiant-MATE-Dark  HighContrast        Materia-light-compact
Arc		   Matcha-aliz	       Radiance
Arc-Dark	   Matcha-azul	       Radiant-MATE
Arc-Darker	   Matcha-dark-aliz    TraditionalHumanized
Breeze		   Matcha-dark-azul    Yaru
Breeze-Dark	   Matcha-dark-sea     Yaru-dark
Communitheme	   Matcha-sea	       Yaru-light
Communitheme-dark  Materia

And installing a new plug-side snap when both theme snaps are installed:

$ snap install gedit
gedit 3.36.2+git3.8c9da67ab from Canonical✓ installed
$ snap connections gedit | grep gtk-3-themes
content[gtk-3-themes]     gedit:gtk-3-themes     gtk-common-themes:gtk-3-themes               -
content[gtk-3-themes]     gedit:gtk-3-themes     gtk-theme-traditionalhumanized:gtk-3-themes  -

That’s exactly the behaviour I was hoping for.

1 Like