Configuration Hook get/set.

Pat McGowan pat.mcgowan at
Wed Mar 29 13:04:32 UTC 2017

On Wed, Mar 29, 2017 at 6:24 AM, <christian.isler at>

> hi all,
> i have a few  questions regarding the baviour of the configuration option
> if i do
> snap set "mySnap" "myOption=77
> everthing works as expected. i can read the option with snap get or in the
> configuration hook with snapctl get.
> after snap remove "mySnap" i still can access the option i set before.
> is this the desired baviour?

Nope, thats

> where are these values stored?


> whats the best way for setting default values for the intial setup?

A request for an install time hook is discussed in
Until then your snap or configure hook will need to provide the logic.


> best regards
> christian
> Disclaimer:
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential, proprietary, and/or
> privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you receive
> this in error, please contact the sender and delete the material from any
> computer. This e-mail does not constitute a contract offer, a contract
> amendment, or an acceptance of a contract offer unless explicitly and
> conspicuously designated or stated as such.
> --
> Snapcraft mailing list
> Snapcraft at
> Modify settings or unsubscribe at:
> an/listinfo/snapcraft

More information about the Snapcraft mailing list