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

Integrate snap compatibility for colour themes #101

Open
lah7 opened this issue Oct 27, 2021 · 0 comments
Open

Integrate snap compatibility for colour themes #101

lah7 opened this issue Oct 27, 2021 · 0 comments
Labels
enhancement An improvement or new feature

Comments

@lah7
Copy link
Member

lah7 commented Oct 27, 2021

ubuntu-mate-colours is now available as a snap to provide compatibility for other snapped applications. Like with Yaru-MATE, the snap alone doesn't show up in Appearance, so it is not be intended to be used as an alternate to the Debian packages.

It would be worthwhile to add logic so installing a colour for the first time installs the snap - but only if snap is installed. Likewise, if the last colour theme is removed, the snap is uninstalled.

Additional logic is required to connect up the snap to existing snaps, to offer a "It just works" experience:

for PLUG in $(snap connections | grep gtk-common-themes:gtk-3-themes | awk '{print $2}'); do sudo snap connect ${PLUG} gtk-theme-yaru-mate:gtk-3-themes; done
for PLUG in $(snap connections | grep gtk-common-themes:gtk-2-themes | awk '{print $2}'); do sudo snap connect ${PLUG} gtk-theme-yaru-mate:gtk-2-themes; done
for PLUG in $(snap connections | grep gtk-common-themes:icon-themes | awk '{print $2}'); do sudo snap connect ${PLUG} icon-theme-yaru-mate:icon-themes; done

Command above was taken from ubuntu-mate/gtk-theme-yaru-mate's README.

Edit: It seems that plugging them up is going to be necessary for newly snaps to use the theme. Unless there's a way to hook at a distro-level, perhaps this could be a "Fixes" thing in the (legacy) Software Boutique, and/or automatically done when installing snaps via the new Software Boutique?

@lah7 lah7 added the enhancement An improvement or new feature label Oct 27, 2021
@lah7 lah7 changed the title Integrate snap compatibility for colour themes for 20.04 LTS users Integrate snap compatibility for colour themes Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement or new feature
Projects
None yet
Development

No branches or pull requests

1 participant