I’m trying to use a content snap for a snap I maintain yuzu
. The content snap I’m trying to use is also published and created by me, nightmayr-kf5-qt-5-15-2-core20
. The content snap as the name indicates essentially aims to provide Qt5 and KDE libraries for the consumer snap.
I’m having difficulty getting yuzu to connect to the content snap however. When creating my content snap I followed the content declaration the kde-frameworks snap used, but tweaked in terms of the name for my snap:
slots:
nightmayr-kf5-qt-5-15-2-core20-slot:
content: nightmayr-kf5-qt-5-15-2-core20-all
interface: content
read:
- "."
nightmayr-kf-5-85-qt-5-15-core20:
content: nightmayr-kf-5-85-qt-5-15-core20
interface: content
read:
- "."
On the yuzu snap side, I used the kde-neon extension and took the output of snapcraft expand-extensions
and tweaked the plug declaration and name to reference my content snap. yuzu’s plug declaration looks like this:
plugs:
desktop:
mount-host-font-cache: false
icon-themes:
default-provider: gtk-common-themes
interface: content
target: $SNAP/data-dir/icons
nightmayr-kde-frameworks-5-plug:
content: nightmayr-kf5-qt-5-15-2-core20-all
default-provider: nightmayr-kf5-qt-5-15-2-core20
interface: content
target: $SNAP/kf5
sound-themes:
default-provider: gtk-common-themes
interface: content
target: $SNAP/data-dir/sounds
When I try to connect this interface I get an error:
$ snap connect yuzu:nightmayr-kde-frameworks-5-plug
error: snap "core" has no "content" interface slots
and running the snap:
$ yuzu
ERROR: not connected to the nightmayr-kde-frameworks-5-plug content interface.
with snap connections
showing:
$ snap connections yuzu
Interface Plug Slot Notes
audio-playback yuzu:audio-playback :audio-playback -
bluez yuzu:bluez - -
browser-support yuzu:browser-support :browser-support -
content[icon-themes] yuzu:icon-themes gtk-common-themes:icon-themes -
content yuzu:nightmayr-kde-frameworks-5-plug - -
What am I doing wrong here?
yuzu snapcraft.yaml: https://github.com/Nightmayr-snaps/yuzu-snap/blob/73c84df8786cd31f1873fbb0911c035084cf6be1/snap/snapcraft.yaml
content snap snapcraft.yaml: https://github.com/Nightmayr-snaps/nightmayr-kf5-qt-5-15-2-core20-snap/blob/3c4f1257f3fb98033d3cd0fec40adaad5f88de1e/snap/snapcraft.yaml
Thanks in advance