refact: linux, install path (#10316)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
5fa8485130
commit
7830a9e9f3
11 changed files with 36 additions and 50 deletions
|
|
@ -42,7 +42,7 @@ pub fn start(args: &mut [String]) {
|
|||
#[cfg(all(target_os = "linux", feature = "inline"))]
|
||||
{
|
||||
let app_dir = std::env::var("APPDIR").unwrap_or("".to_string());
|
||||
let mut so_path = "/usr/lib/rustdesk/libsciter-gtk.so".to_owned();
|
||||
let mut so_path = "/usr/local/rustdesk/libsciter-gtk.so".to_owned();
|
||||
for (prefix, dir) in [
|
||||
("", "/usr"),
|
||||
("", "/app"),
|
||||
|
|
@ -51,7 +51,7 @@ pub fn start(args: &mut [String]) {
|
|||
]
|
||||
.iter()
|
||||
{
|
||||
let path = format!("{prefix}{dir}/lib/rustdesk/libsciter-gtk.so");
|
||||
let path = format!("{prefix}{dir}/local/rustdesk/libsciter-gtk.so");
|
||||
if std::path::Path::new(&path).exists() {
|
||||
so_path = path;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue