Can an application query about its snap context?

Ok, I found this one Snapctl is-connected plug|slot

‘snapctl’ need to be run from the snap and it can return the interface status as the subprocess exit code.

1 Like