I encountered this reworking the egmde-confined-desktop snap to use layouts, but the limit of 15 seems hard to work around. What I tried to use was:
layout:
/usr/bin/qterminal:
symlink: $SNAP/usr/bin/qterminal
/etc/gnome-chess:
bind: $SNAP/etc/gnome-chess
/usr/share/gnome-chess:
bind: $SNAP/usr/share/gnome-chess
/usr/share/gnuchess:
bind: $SNAP/usr/share/gnuchess
/usr/share/gnome-mahjongg:
bind: $SNAP/usr/share/gnome-mahjongg
/usr/share/kodi:
bind: $SNAP/usr/share/kodi
/usr/share/games:
bind: $SNAP/usr/share/games
/usr/games:
bind: $SNAP/usr/games
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/pulseaudio:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/pulseaudio
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/samba:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/samba
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt5
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri
/usr/share/applications:
bind: $SNAP/usr/share/applications
/etc/glvnd:
bind: $SNAP/etc/glvnd
/etc/fonts:
bind: $SNAP/etc/fonts
/etc/xdg:
bind: $SNAP/etc/xdg
/usr/share/X11/xkb:
bind: $SNAP/usr/share/X11/xkb
/usr/share/fonts:
bind: $SNAP/usr/share/fonts
/usr/share/glvnd:
bind: $SNAP/usr/share/glvnd
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/mir/client-platform:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/mir/client-platform
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/mir/server-platform:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/mir/server-platform
But that fails to upload to the store:
Launchpad uploaded this snap package to the store, but the store failed to
scan it:
too many defined layouts (21 > 15)
Each of these entries serves a purpose and there’s no obvious way to lose six entries from this list, for example:
ls /snap/core/current/usr/lib/x86_64-linux-gnu/ | wc -l
116
suggests that
/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}:
bind: $SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}
wound be a Bad Idea
Is the limit of 15 arbitrary? Could it be relaxed?