diff options
Diffstat (limited to 'remoting/host/simple_host_process.cc')
-rw-r--r-- | remoting/host/simple_host_process.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index 035fa32..a83dfc8 100644 --- a/remoting/host/simple_host_process.cc +++ b/remoting/host/simple_host_process.cc @@ -20,6 +20,7 @@ #include "base/at_exit.h" #include "base/command_line.h" +#include "base/env_var.h" #include "base/file_path.h" #include "base/logging.h" #include "base/nss_util.h" @@ -49,7 +50,6 @@ const wchar_t kHomePath[] = L"HOMEPATH"; const wchar_t* GetEnvironmentVar(const wchar_t* x) { return _wgetenv(x); } #else const std::string kDefaultConfigPath = ".ChromotingConfig.json"; -const char kHomePath[] = "HOME"; static char* GetEnvironmentVar(const char* x) { return getenv(x); } #endif @@ -93,7 +93,7 @@ int main(int argc, char** argv) { std::wstring path = GetEnvironmentVar(kHomeDrive); path += GetEnvironmentVar(kHomePath); #else - std::string path = GetEnvironmentVar(kHomePath); + std::string path = GetEnvironmentVar(base::env_vars::kHome); #endif FilePath config_path(path); config_path = config_path.Append(kDefaultConfigPath); |