diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index cafbc0b022c7899f4acb8c97acef17944144f471..a606e291ef4d3d5ad983613becf5cf06665c7a41 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -6,6 +6,15 @@ confinement: strict base: core22 compression: lzo +# ---- +# hacks to make `evince` work for the print preview +layout: + /usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/evince/4/backends: + bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/evince/4/backends + /usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/glib-2.0: + bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/glib-2.0 +# ---- + plugs: dot-config-inkscape: interface: personal-files @@ -18,6 +27,14 @@ plugs: interface: content target: $SNAP/data-dir/icons default-provider: gtk-common-themes +# ---- +# hack needed to ensure that the "cups" slot is available on the host, see https://snapcraft.io/docs/cups-interface + foo-install-cups: + interface: content + content: foo + default-provider: cups + target: $SNAP_DATA/foo +# ---- slots: inkscape-dbus: @@ -106,6 +123,11 @@ parts: - python3-pil - python3-gi - python3-gi-cairo +# ---- +# needed by the print preview feature + - evince + - libglib2.0-0 +# ---- prime: - -lib/inkscape/*.a - -*canberra*so* # We don't have sound permissions anyway