Skip to content

Commit

Permalink
Added code to check for the existence of a customized ini file named …
Browse files Browse the repository at this point in the history
…`ConEmu-%COMPUTERNAME%.ini`, before checking for the standard ini file `ConEmu.ini`.
  • Loading branch information
kodybrown committed Mar 17, 2015
1 parent df4e83d commit 1871564
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion launcher/src/CmderLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ void StartCmder(std::wstring path, bool is_single_mode)
PathRemoveFileSpec(exeDir);

PathCombine(icoPath, exeDir, L"icons\\cmder.ico");
PathCombine(cfgPath, exeDir, L"config\\ConEmu.xml");
PathCombine(cfgPath, exeDir, L"config\\ConEmu-%COMPUTERNAME%.xml");

This comment has been minimized.

Copy link
@daxgames

daxgames Dec 14, 2015

Member

Should this be "config\user-ConEmu-%COMPUTERNAME%.xml" so it will be ignored by '.gitignore'?

ExpandEnvironmentStrings(cfgPath, cfgPath, sizeof(cfgPath) / sizeof(cfgPath[0]));
if (!PathFileExists(cfgPath)) {
PathCombine(cfgPath, exeDir, L"config\\ConEmu.xml");
}
PathCombine(conEmuPath, exeDir, L"vendor\\conemu-maximus5\\ConEmu.exe");

if (is_single_mode)
Expand Down

0 comments on commit 1871564

Please sign in to comment.