Comment 0 for bug 1583259

Zygmunt Krynicki (zyga) wrote :

We see a common pattern across many snaps, all apps are really using wrappers to set environment variables. I'd like to propose that this is exposed as first class feature in snapcraft (same like plugs and slots), snappy (where interfaces can affect variables and snappy can have sensible defaults) and ubuntu-core-launcher (to actually apply those variables to each started process).

As a bit of context, this is a wrapper for a non trivial but still common app: the calculator:

The wrapper is 44 lines long, all of which set up environment variables.