mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
convert to wstring for windows
This commit is contained in:
@@ -167,9 +167,9 @@ BrowserMainParts::~BrowserMainParts() {
|
||||
#if defined(OS_WIN) || defined(OS_LINUX)
|
||||
void OverrideAppLogsPath() {
|
||||
#if defined(OS_WIN)
|
||||
std::string app_name = GetApplicationName();
|
||||
std::string log_path = "%HOMEDRIVE%%HOMEPATH%\\AppData\\Roaming\\";
|
||||
std::string app_log_path = log_path + app_name + "\\logs";
|
||||
std::wstring app_name = base::UTF8ToWide(GetApplicationName());
|
||||
std::wstring log_path = L"%HOMEDRIVE%%HOMEPATH%\\AppData\\Roaming\\";
|
||||
std::wstring app_log_path = log_path + app_name + L"\\logs";
|
||||
#else
|
||||
std::string app_name = GetApplicationName();
|
||||
std::string home_path = std::string(getenv("HOME"));
|
||||
|
||||
Reference in New Issue
Block a user