refact: linux, move rustdesk into /usr/share (#10327)
* refact: linux, move rustdesk into /usr/share Signed-off-by: fufesou <linlong1266@gmail.com> * linux, upgrade, try remove old empty folders Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -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/local/rustdesk/libsciter-gtk.so".to_owned();
|
||||
let mut so_path = "/usr/share/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}/local/rustdesk/libsciter-gtk.so");
|
||||
let path = format!("{prefix}{dir}/share/rustdesk/libsciter-gtk.so");
|
||||
if std::path::Path::new(&path).exists() {
|
||||
so_path = path;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user