Skip to content

Commit

Permalink
Fix compilation on windows actually for real
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Mar 26, 2024
1 parent 10a5b75 commit 70072d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/system/env/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ use crate::{
pub async fn add_to_path(home: &Home) -> RokitResult<bool> {
// NOTE: Calls to canonicalize may use blocking filesystem
// operations, so we spawn a task where that's acceptable.
let dir = home.path().join("bin");
let task = spawn_blocking(|| {
let dir = home.path().join("bin").canonicalize()?;
let dir = dir.canonicalize()?;

let key = RegKey::predef(HKEY_CURRENT_USER);
let env = key.create_subkey("Environment")?.0;
Expand Down

0 comments on commit 70072d8

Please sign in to comment.