Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Commit 4fe7947

Browse files
committed
refactor: improve the way we get the MicrosoftEdge folder
1 parent e25faba commit 4fe7947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webview/windows/webview2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ namespace Soundux
120120
UpdateWindow(hwnd);
121121
SetFocus(hwnd);
122122

123-
std::string appdata = std::getenv("APPDATA");
124-
appdata += "\\..\\Local\\MicrosoftEdge";
123+
std::string appdata = std::getenv("LOCALAPPDATA");
124+
appdata += "\\MicrosoftEdge";
125125

126126
auto envResult = CreateCoreWebView2EnvironmentWithOptions(
127127
nullptr, widen(appdata).c_str(), nullptr,

0 commit comments

Comments
 (0)