Skip to content

Commit

Permalink
change process_env.set to .set_or_own for XAUTHORITY
Browse files Browse the repository at this point in the history
  • Loading branch information
h-leth committed Jan 9, 2025
1 parent 1c09da3 commit 7b3af29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/post_login/x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub fn setup_x(
})?;

let xauth_path = xauth_path.to_str().ok_or(XSetupError::InvalidUTF8Path)?;
process_env.set("XAUTHORITY", xauth_path);
process_env.set_or_own("XAUTHORITY", xauth_path);

let doubledigit_vtnr = if vtnr_value.len() == 1 {
format!("0{vtnr_value}")
Expand Down

0 comments on commit 7b3af29

Please # to comment.