enigo: check /usr/lib/rustdesk for pynput_service.py

This commit is contained in:
jkhsjdhjs 2022-05-16 15:01:53 +02:00
parent d7aac26356
commit 368af127df
No known key found for this signature in database
GPG Key ID: BAC6ADBAB7D576CC

View File

@ -489,7 +489,10 @@ fn start_pynput_service(rx: mpsc::Receiver<(PyMsg, bool)>) {
if !std::path::Path::new(&py).exists() {
py = "/usr/share/rustdesk/files/pynput_service.py".to_owned();
if !std::path::Path::new(&py).exists() {
log::error!("{} not exits", py);
py = "/usr/lib/rustdesk/pynput_service.py".to_owned();
if !std::path::Path::new(&py).exists() {
log::error!("{} not exits", py);
}
}
}
log::info!("pynput service: {}", py);