From 20c1b583076e9b64462911865b7cec6163c84ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 20 Sep 2018 11:09:01 +0200 Subject: [PATCH] snap: use content interfaces for themes icons and sounds Reduce the space used and support proper theming --- snap/snapcraft.yaml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index a651f7056..7ebcba138 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -48,6 +48,20 @@ apps: - removable-media - unity7 +plugs: + gtk-3-themes: + interface: content + target: $SNAP/usr/share/themes + default-provider: gtk-common-themes + icon-themes: + interface: content + target: $SNAP/usr/share/icons + default-provider: gtk-common-themes + sound-themes: + interface: content + target: $SNAP/usr/share/sounds + default-provider: gtk-common-themes + parts: telegram: plugin: gyp-cmake @@ -122,10 +136,18 @@ parts: - libpulse0 - libunity9 after: [desktop-gtk3] - stage: [-./usr/share/fonts/**] + stage: + - -./usr/share/fonts/** + - -./usr/share/themes/** + - -./usr/share/icons/** + - -./usr/share/sounds/** desktop-gtk3: - stage: [-./usr/share/fonts/**] + stage: + - -./usr/share/fonts/** + - -./usr/share/themes/** + - -./usr/share/icons/** + - -./usr/share/sounds/** override-build: | set -xe snapcraftctl build