allow env vars in paths too
This commit is contained in:
parent
2c895b2c18
commit
9f4ed0ee18
|
@ -1161,7 +1161,8 @@ void Pane::_ControlWarningBellHandler(const winrt::Windows::Foundation::IInspect
|
|||
auto sounds{ _profile.BellSound() };
|
||||
if (sounds && sounds.Size() > 0)
|
||||
{
|
||||
winrt::Windows::Foundation::Uri uri{ sounds.GetAt(rand() % sounds.Size()) };
|
||||
winrt::hstring soundPath{ wil::ExpandEnvironmentStringsW<std::wstring>(sounds.GetAt(rand() % sounds.Size()).c_str()) };
|
||||
winrt::Windows::Foundation::Uri uri { soundPath };
|
||||
_playBellSound(uri);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue