Remove println! that should not exist
This commit is contained in:
parent
6a0c816ad3
commit
fb3f2bde0c
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pub fn home() -> Option<PathBuf> {
|
||||||
.args(["-c", &format!("id {}", uid)])
|
.args(["-c", &format!("id {}", uid)])
|
||||||
.output().ok()?;
|
.output().ok()?;
|
||||||
let user_out_str = String::from_utf8_lossy(user_info.stdout.as_slice());
|
let user_out_str = String::from_utf8_lossy(user_info.stdout.as_slice());
|
||||||
println!("loginuid: {}", user_out_str);
|
//println!("loginuid: {}", user_out_str);
|
||||||
let user_str = user_out_str.split(")").next()?;
|
let user_str = user_out_str.split(")").next()?;
|
||||||
let user = &user_str[user_str.find("(")?+1..];
|
let user = &user_str[user_str.find("(")?+1..];
|
||||||
Some(Path::new("/home").join(user))
|
Some(Path::new("/home").join(user))
|
||||||
|
|
Loading…
Reference in a new issue