I’m using Matomo in an Electron app to keep track on how many installations this app got and how the versions spread. What I would like to know as well is, from what sources these apps have been installed. Or in other words in which containers they run on the users side.
I would basically need an identifier in my apps main process, that for instance is set during build.
I can already identify if the app is run as an AppImage (through an ENV that is only set by AppImage), as a Windows Store app (https://www.electronjs.org/docs/api/process#processwindowsstore-readonly) or a Mac App Store build (https://www.electronjs.org/docs/api/process#processmas-readonly).
But so far I haven’t found a way to properly identify a Snap. Do you guys have any idea how I would do that?