a test build with https://github.com/snapcore/snapcraft/pull/690 applied confirms that this PR fixes the bugs properly.
a test build with https:/ /github. com/snapcore/ snapcraft/ pull/690 applied confirms that this PR fixes the bugs properly.