Eryk Sun
Eryk Sun
> Windows API allows to [create new process](https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw) with custom env block. So there is no need to handle events. PowerShell does this in some scenarios. The environment should only...
> Please, just check for new environment variables when a new tab is created. I thought the point was to behave like running a console application from Explorer, which inherits...
@zadjii-msft, note my comment in https://github.com/microsoft/terminal/issues/12157#issuecomment-1012606082. When Terminal is run from the start menu or "Open in Windows Terminal", a system service does the work of spawning the process. The...
@miniksa, Windows uses reserved environment variables with names that begin with "=", which effectively makes them hidden variables in most cases. This isn't a problem in practice, given an empty...
> (Regarding hidden env vars I am not sure where the use case should be.) It's a matter of which behaviors of `RegenerateUserEnvironment()` should be intentionally preserved or rejected, instead...
> But it don't think it's true that SetCurrentDirectoryW() can exceed the MAX_PATH limit even now (regardless of whether long paths are enabled). Back then it couldn't, but long-path support...
The IDLE shortcut that's installed by the development distribution runs `"\pythonw.exe" "\Lib\idlelib\idle.pyw"`. Thus opening a file that's pinned to the jumplist will execute it as a script via "pythonw.exe". To...
On Windows, `abspath()` also normalizes a path, such as stripping any trailing spaces and dots from the final component. For example: ```pycon >>> ntpath.relpath('spam/eggs. . .', 'spam/eggs/foo') '..' ``` If...
> Funnily enough `normpath()` doesn't apply that normalisation. The support for Windows normalisation rules in Python seems pretty patchy IMO. There's no provision for it in pathlib, for example. I'd...
Out of curiosity, can you install the x86 and AMD64 versions of 3.12.0a1 and check `platform.machine()` in each? The new implementation in 3.12 prefers to get the CPU "Architecture" from...