How to remove a Studio Environment variable

Doug Easterbrook doug at artsman.com
Sat Feb 20 18:21:41 UTC 2021


hi Dennis.

you don’t say if you are using mac or windows  but there is no command in omnis to delete an env var.

if you are trying to clear its value because you don’t want it seen outside omnis, you could putenv() again and set the value to something like ‘empty’,  ‘’ or what have you.

In theory, if you are setting it, then it should go away when you quit omnis anyway.


in osx there is a command called unset which you might be able to use in a shell script, the launch program or somehow in applescript.




 if you are talking about permanently removing it, you might want to edit you .bash_profile (mac)     on windows you can edit the user profile


not sure if that helps you since its not clear if you are creating it in omnis, or trying to do away with something that was set up before you started omnis.




Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978

> On February 20, 2021, at 9:29 AM, Denis Woodbury via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi,
> 
> The putenv() function can be used to add or change an environment variable.
> Do putenv("MYVAR","MYVALUE")
> 
> How can an environment variable be removed or where are they stored?
> 
> Thanks
> 
> denis woodbury 
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list