I've got an (as yet unmerged) snapd branch to help with this:
https://github.com/snapcore/snapd/pull/4055
It got a review yesterday, so should go in the next snapd release.
This is basically doing (1), returning a Forbidden error when the user dismisses the dialog.
I've got an (as yet unmerged) snapd branch to help with this:
https:/ /github. com/snapcore/ snapd/pull/ 4055
It got a review yesterday, so should go in the next snapd release.
This is basically doing (1), returning a Forbidden error when the user dismisses the dialog.