diff --git a/src/cascadia/TerminalApp/Pane.cpp b/src/cascadia/TerminalApp/Pane.cpp index a6887d766..431aaba8f 100644 --- a/src/cascadia/TerminalApp/Pane.cpp +++ b/src/cascadia/TerminalApp/Pane.cpp @@ -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(sounds.GetAt(rand() % sounds.Size()).c_str()) }; + winrt::Windows::Foundation::Uri uri { soundPath }; _playBellSound(uri); } else