OK, it seems that finally there’s a fix for this:
- This needs to be merged https://github.com/ubuntu/snapcraft-desktop-helpers/pull/188 (meanwhile I forked it an applied the fix: https://github.com/pachulo/snapcraft-desktop-helpers/commit/356dc11c0f374b3e30647d36554d4c4089670db5)
- This layout needs to be added to the snap:
layout:
/usr/share/qt5:
bind: $SNAP/usr/share/qt5
With this two pieces I get a working nextcloud-client snap! Now I have to clean it…