diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-04-04 16:12:15 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-04-04 16:51:29 +0200 |
| commit | 8cf30bc78b534e6ffba8d54501201499f9ec826d (patch) | |
| tree | b05af36c960a6ed507691d2ea0b71fa16bd65a79 /mullvad-daemon/src | |
| parent | d1c55f06e19c621c48be3e6288c20b0cc47095f9 (diff) | |
| download | mullvadvpn-8cf30bc78b534e6ffba8d54501201499f9ec826d.tar.xz mullvadvpn-8cf30bc78b534e6ffba8d54501201499f9ec826d.zip | |
Switch to global windows temp directory on windows
Diffstat (limited to 'mullvad-daemon/src')
| -rw-r--r-- | mullvad-daemon/src/rpc_address_file.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mullvad-daemon/src/rpc_address_file.rs b/mullvad-daemon/src/rpc_address_file.rs index f40b9073c1..fc3bc1cf1e 100644 --- a/mullvad-daemon/src/rpc_address_file.rs +++ b/mullvad-daemon/src/rpc_address_file.rs @@ -24,7 +24,10 @@ lazy_static! { #[cfg(not(unix))] lazy_static! { /// The path to the file where we write the RPC connection info - static ref RPC_ADDRESS_FILE_PATH: PathBuf = ::std::env::temp_dir().join(".mullvad_rpc_address"); + static ref RPC_ADDRESS_FILE_PATH: PathBuf = { + let windows_directory = ::std::env::var_os("WINDIR").unwrap(); + PathBuf::from(windows_directory).join("Temp").join(".mullvad_rpc_address") + }; } |
