mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	Set CMDER_START to USER_PROFILE if no path given.
This commit is contained in:
		| @@ -158,12 +158,10 @@ void StartCmder(std::wstring path, bool is_single_mode) | |||||||
| 	{ | 	{ | ||||||
| 		SetEnvironmentVariable(L"CMDER_START", path.c_str()); | 		SetEnvironmentVariable(L"CMDER_START", path.c_str()); | ||||||
| 	} | 	} | ||||||
|  | 	else | ||||||
| 		// Send out the Settings Changed message - Once using ANSII... | 	{ | ||||||
| 		//SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)"Environment", SMTO_ABORTIFHUNG, 5000, NULL); | 		SetEnvironmentVariable(L"CMDER_START", GetEnvironmentVariable(L"USER_PROFILE")); | ||||||
|  | 	} | ||||||
| 		// ...and once using UniCode (because Windows 8 likes it that way). |  | ||||||
| 		//SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) L"Environment", SMTO_ABORTIFHUNG, 5000, NULL); |  | ||||||
|  |  | ||||||
| 	STARTUPINFO si = { 0 }; | 	STARTUPINFO si = { 0 }; | ||||||
| 	si.cb = sizeof(STARTUPINFO); | 	si.cb = sizeof(STARTUPINFO); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user