mirror of
https://github.com/therootcompany/serviceman.git
synced 2025-11-12 10:34:26 +00:00
Adding serviceman to PATH doesn't work in Windows. #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Windows 10 v1903.
What I did:
Opened new command prompt, ran
serviceman, got:I should update the README.
regupdates the registry, it DOES NOT update thePATHin the current environment.Getting Windows to re-read the PATH from the registry into the environment requires a restart, or a program to issue a special low-level
syscallfunction that causesPATHto be re-read.And that is why I created
pathman, which does use that low-level syscall:https://git.rootprojects.org/root/pathman
P.S. The built-in
setxcommand will cause PATH to be re-read, but it has a long-standing bug that causes the PATH to be set in the wrong place, and potentially truncated... welcome to Windows :)Ok. Yeah. Windows is weird :)