File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1818
1919 <Identity Name =" WindowsTerminalDev"
2020 Publisher =" CN=Dm17tryK"
21- Version =" 1.24.53104.3 " />
21+ Version =" 1.24.53104.4 " />
2222
2323 <Properties >
2424 <DisplayName >ms-resource:AppStoreNameDev</DisplayName >
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ using namespace ::Microsoft::Console;
2424using namespace std ::chrono_literals;
2525using VirtualKeyModifiers = winrt::Windows::System::VirtualKeyModifiers;
2626
27+ #define ENV_WT_BASE_SETTINGS_PATH L" WT_BASE_SETTINGS_PATH"
28+
2729#ifdef _WIN64
2830static constexpr ULONG_PTR TERMINAL_HANDOFF_MAGIC = 0x4c414e494d524554 ; // 'TERMINAL'
2931#else
@@ -297,6 +299,18 @@ void WindowEmperor::HandleCommandlineArgs(int nCmdShow)
297299#endif
298300 }
299301
302+ try
303+ {
304+ const auto settingsPath = wil::GetEnvironmentVariableW<std::wstring>(ENV_WT_BASE_SETTINGS_PATH);
305+ const auto settingsHash = til::hash (settingsPath);
306+ #ifdef _WIN64
307+ fmt::format_to (std::back_inserter (windowClassName), FMT_COMPILE (L" {:016x}" ), settingsHash);
308+ #else
309+ fmt::format_to (std::back_inserter (windowClassName), FMT_COMPILE (L" {:08x}" ), settingsHash);
310+ #endif
311+ }
312+ CATCH_LOG ()
313+
300314 // Windows Terminal is a single-instance application. Either acquire ownership
301315 // over the mutex, or hand off the command line to the existing instance.
302316 const auto mutex = acquireMutexOrAttemptHandoff (windowClassName.c_str (), nCmdShow);
You can’t perform that action at this time.
0 commit comments