BALENA_HOST_OS_VERSION does not indicate development vs production

I’d like to programmatically determine whether my containers are running on a development or production build of BalenaOS.

Specifically, because I use a mouse during development and a touchscreen in production and I’d like to enable the cursor in development so I can see the mouse.

A quick printenv | grep dev shows it’s nowhere in the environment variables. I’m assuming there’s a reason for this? Is there a different way I should be doing this?

1 Like

Hey @Jassky, just checked with the team and at the moment there isn’t a way to easily access that information.

We have opened an issue here https://github.com/balena-io/balena-supervisor/issues/1074 and it will be checked in the future. but currently with no ETA.

Cheers

1 Like

Thanks @dansku.

1 Like

Bumping this old topic, but I saw that the issue is still open.
Is there still no way of knowing this inside a container? It’d be nice to know this so I can add/change some things in my software based on this variable.