update issue template and clippy for hbb_common

This commit is contained in:
rustdesk
2023-02-08 17:26:44 +08:00
parent 4539ad53e1
commit 7c13be5876
10 changed files with 103 additions and 98 deletions

View File

@@ -60,7 +60,7 @@ fn get_display_server_of_session(session: &str) -> String {
.replace("TTY=", "")
.trim_end()
.into();
if let Ok(xorg_results) = run_cmds(format!("ps -e | grep \"{}.\\\\+Xorg\"", tty))
if let Ok(xorg_results) = run_cmds(format!("ps -e | grep \"{tty}.\\\\+Xorg\""))
// And check if Xorg is running on that tty
{
if xorg_results.trim_end() != "" {