Running `snap` commands within a snap


Is it possible to run snap refresh within another snap?

I want to invoke refresh from another snap manually.

Hi ! @zhex900 .

In a classic confinement, potentially not.

A program based on a classic confinement should not have a such privilege.

Besides, how can a running program update itself without taking certain precautions ?

Exercising this part of the snapd API requires snapd-control interface to be connected.

What are you trying to achieve?