Skip to content

Commit

Permalink
Merge pull request #1971 from cmderdev/fix_1.3.9
Browse files Browse the repository at this point in the history
fix initial launch of cmder starting with conemu default cfg
  • Loading branch information
daxgames committed Nov 30, 2018
2 parents 378ebff + 5c7f494 commit 3163d6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions launcher/src/CmderLauncher.cpp
Expand Up @@ -319,6 +319,16 @@ void StartCmder(std::wstring path = L"", bool is_single_mode = false, std::wstr
}
}
}
else {
if (!CopyFile(defaultCfgPath, cfgPath, FALSE))
{
MessageBox(NULL,
(GetLastError() == ERROR_ACCESS_DENIED)
? L"Failed to copy vendor/ConEmu.xml.default file to vendor/conemu-maximus5/ConEmu.xml! Access Denied."
: L"Failed to copy vendor/ConEmu.xml.default file to vendor/conemu-maximus5/ConEmu.xml!", MB_TITLE, MB_ICONSTOP);
exit(1);
}
}
}
else if (PathFileExists(cfgPath)) // vendor/conemu-maximus5/ConEmu.xml exists, copy vendor/conemu-maximus5/ConEmu.xml to config/user_conemu.xml
{
Expand Down

0 comments on commit 3163d6d

Please sign in to comment.