mirror of
https://github.com/microsoft/WSL.git
synced 2026-02-04 02:06:49 -06:00
clang format
This commit is contained in:
parent
42c4158382
commit
a2fb8466cc
@ -2678,13 +2678,13 @@ try
|
||||
std::wstring systemDirectory;
|
||||
THROW_IF_FAILED(wil::GetSystemDirectory(systemDirectory));
|
||||
|
||||
e["commandline"] = WideToMultiByte(std::format(
|
||||
L"{}\\{} {} {}", systemDirectory, WSL_BINARY_NAME, WSL_DISTRIBUTION_ID_ARG, distributionIdString));
|
||||
e["commandline"] =
|
||||
WideToMultiByte(std::format(L"{}\\{} {} {}", systemDirectory, WSL_BINARY_NAME, WSL_DISTRIBUTION_ID_ARG, distributionIdString));
|
||||
|
||||
e["name"] = WideToMultiByte(Configuration.Name);
|
||||
e["guid"] = WideToMultiByte(distributionProfileId);
|
||||
e["icon"] = WideToMultiByte(IconPath.native());
|
||||
|
||||
|
||||
// Set default starting directory to home directory if not already specified
|
||||
// This allows Windows Terminal to override with startingDirectory setting
|
||||
if (e.find("startingDirectory") == e.end())
|
||||
|
||||
@ -2538,11 +2538,11 @@ Error code: Wsl/InstallDistro/WSL_E_DISTRO_NOT_FOUND
|
||||
std::wstring systemDir;
|
||||
wil::GetSystemDirectoryW(systemDir);
|
||||
|
||||
VERIFY_ARE_EQUAL(
|
||||
std::format("{}\\{} {} {}", systemDir, WSL_BINARY_NAME, WSL_DISTRIBUTION_ID_ARG, distroIdString),
|
||||
launchProfile["commandline"].get<std::string>());
|
||||
|
||||
// Verify that startingDirectory is set to home directory
|
||||
VERIFY_ARE_EQUAL(
|
||||
std::format("{}\\{} {} {}", systemDir, WSL_BINARY_NAME, WSL_DISTRIBUTION_ID_ARG, distroIdString),
|
||||
launchProfile["commandline"].get<std::string>());
|
||||
|
||||
// Verify that startingDirectory is set to home directory
|
||||
VERIFY_ARE_EQUAL(launchProfile["startingDirectory"].get<std::string>(), "~");
|
||||
|
||||
auto iconLocation = wsl::shared::string::MultiByteToWide(launchProfile["icon"].get<std::string>());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user