mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
1 parent
10eddc139c
commit
a94052a24a
2 files changed
+2
-2
No files matched your search
@@ -237,7 +237,7 @@ impl DesktopEnv {
|
||||
fn get_env_seat0(&mut self) -> ResultType<bool> {
|
||||
let output = Command::new("loginctl").output()?;
|
||||
for line in String::from_utf8_lossy(&output.stdout).lines() {
|
||||
if line.contains("seat0") {
|
||||
if !line.contains("gdm") && line.contains("seat0") {
|
||||
if let Some(sid) = line.split_whitespace().nth(0) {
|
||||
if Self::is_active(sid)? {
|
||||
if let Some(uid) = line.split_whitespace().nth(1) {
|
||||
|
||||
Reference in new issue
Block a user