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?

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 and it will be checked in the future. but currently with no ETA.


1 Like

Thanks @dansku.

1 Like