mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 16:31:27 +03:00
enigo: check /usr/lib/rustdesk for pynput_service.py
This commit is contained in:
@@ -488,10 +488,13 @@ fn start_pynput_service(rx: mpsc::Receiver<(PyMsg, bool)>) {
|
|||||||
let mut py = "./pynput_service.py".to_owned();
|
let mut py = "./pynput_service.py".to_owned();
|
||||||
if !std::path::Path::new(&py).exists() {
|
if !std::path::Path::new(&py).exists() {
|
||||||
py = "/usr/share/rustdesk/files/pynput_service.py".to_owned();
|
py = "/usr/share/rustdesk/files/pynput_service.py".to_owned();
|
||||||
|
if !std::path::Path::new(&py).exists() {
|
||||||
|
py = "/usr/lib/rustdesk/pynput_service.py".to_owned();
|
||||||
if !std::path::Path::new(&py).exists() {
|
if !std::path::Path::new(&py).exists() {
|
||||||
log::error!("{} not exits", py);
|
log::error!("{} not exits", py);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
log::info!("pynput service: {}", py);
|
log::info!("pynput service: {}", py);
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
let username = std::env::var("PYNPUT_USERNAME").unwrap_or("".to_owned());
|
let username = std::env::var("PYNPUT_USERNAME").unwrap_or("".to_owned());
|
||||||
|
|||||||
Reference in New Issue
Block a user