fix: linux, home (#13879)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-12-23 15:43:31 +08:00
committed by GitHub
parent eba847e62e
commit 6a701f1420
5 changed files with 61 additions and 21 deletions

View File

@@ -4,7 +4,12 @@ use crate::client::{
LOGIN_MSG_DESKTOP_SESSION_NOT_READY, LOGIN_MSG_DESKTOP_XORG_NOT_FOUND,
LOGIN_MSG_DESKTOP_XSESSION_FAILED,
};
use hbb_common::{allow_err, bail, log, rand::prelude::*, tokio::time};
use hbb_common::{
allow_err, bail, log,
rand::prelude::*,
tokio::time,
users::{get_user_by_name, os::unix::UserExt, User},
};
use pam;
use std::{
collections::HashMap,
@@ -18,7 +23,6 @@ use std::{
},
time::{Duration, Instant},
};
use users::{get_user_by_name, os::unix::UserExt, User};
lazy_static::lazy_static! {
static ref DESKTOP_RUNNING: Arc<AtomicBool> = Arc::new(AtomicBool::new(false));