Like [`obtainAppInfo`][1] in `healthreporter.jsm`?
I like that implementation.


[1]: https://mxr.mozilla.org/mozilla-central/ident?i=obtainAppInfo