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.
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.