Sorry for the late reply. It's quite simple to set environments variables for other type of applications not directly executed in terminal. but it depends on what type of language you run in reality, for example you can run python, java, node.js, go and etc. Each language and their platform provides its own way to set environment variables according to their own api and syntax.