Fix ubuntu compiler errors

This commit is contained in:
Caelan
2024-01-10 23:23:39 +00:00
parent fc9b742331
commit 4b9f22c665
3 changed files with 3 additions and 1 deletions

1
src/Rust/Cargo.lock generated
View File

@@ -1679,6 +1679,7 @@ dependencies = [
"glob", "glob",
"image", "image",
"lazy_static", "lazy_static",
"libc",
"log", "log",
"memmap2", "memmap2",
"native-dialog", "native-dialog",

View File

@@ -81,6 +81,7 @@ native-dialog = "0.7"
waitpid-any = "0.2" waitpid-any = "0.2"
bindet = "0.3" bindet = "0.3"
dialog = "0.3" dialog = "0.3"
libc = "0.2"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
fs_extra = "1.2" fs_extra = "1.2"

View File

@@ -227,7 +227,7 @@ fn run_apply_elevated(package: Option<&PathBuf>, exe_args: Option<Vec<&str>>) ->
std::fs::set_permissions(&temp_path, <std::fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o755))?; std::fs::set_permissions(&temp_path, <std::fs::Permissions as std::os::unix::fs::PermissionsExt>::from_mode(0o755))?;
let path = std::env::var("APPIMAGE")?; let path = std::env::var("APPIMAGE")?;
let mut args = get_run_elevated_args(false, package, exe_args); let mut args = get_run_elevated_args(package, exe_args);
args.insert(0, "env".to_string()); args.insert(0, "env".to_string());
args.insert(1, format!("APPIMAGE={}", path)); args.insert(1, format!("APPIMAGE={}", path));
args.insert(2, temp_path.to_owned()); args.insert(2, temp_path.to_owned());