- May
- 13,190
- 180
I'm not sure what to suggest. I have been doing some programming involving environments, and I've looked at the environments of many programs.
Here, TCC runs a logon script which, among other things, starts PowerPro and AutoHotKey. I start almost everything from one of those two programs or from TCC itself. And almost every program I run has CMDLINE and/or CMDLINE2 set; the ones started by PowerPro and AutoHotKey get ancient (from login time) values for those variables. In any case, they're meaningless to those programs.
How about a way to keep CMDLINE and CMDLINE2 from being inherited by executables?
Here, TCC runs a logon script which, among other things, starts PowerPro and AutoHotKey. I start almost everything from one of those two programs or from TCC itself. And almost every program I run has CMDLINE and/or CMDLINE2 set; the ones started by PowerPro and AutoHotKey get ancient (from login time) values for those variables. In any case, they're meaningless to those programs.
How about a way to keep CMDLINE and CMDLINE2 from being inherited by executables?