mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Ensure Environment Variables are propagated.
This commit is contained in:
parent
fabcd468a7
commit
73e1eb2a8b
@ -164,6 +164,10 @@ void StartCmder(std::wstring path, bool is_single_mode)
|
|||||||
GetEnvironmentVariable(L"USER_PROFILE", buff, MAX_PATH);
|
GetEnvironmentVariable(L"USER_PROFILE", buff, MAX_PATH);
|
||||||
SetEnvironmentVariable(L"CMDER_START", buff);
|
SetEnvironmentVariable(L"CMDER_START", buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure EnvironmentVariables are propagated.
|
||||||
|
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment", SMTO_ABORTIFHUNG, 5000, NULL);
|
||||||
|
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) L"Environment", SMTO_ABORTIFHUNG, 5000, NULL); // For Windows >= 8
|
||||||
|
|
||||||
STARTUPINFO si = { 0 };
|
STARTUPINFO si = { 0 };
|
||||||
si.cb = sizeof(STARTUPINFO);
|
si.cb = sizeof(STARTUPINFO);
|
||||||
|
Loading…
Reference in New Issue
Block a user