diff --git a/src/Rust/Cargo.lock b/src/Rust/Cargo.lock index c9849e59..57adc2d8 100644 --- a/src/Rust/Cargo.lock +++ b/src/Rust/Cargo.lock @@ -1679,6 +1679,7 @@ dependencies = [ "glob", "image", "lazy_static", + "libc", "log", "memmap2", "native-dialog", diff --git a/src/Rust/Cargo.toml b/src/Rust/Cargo.toml index 22905af6..3db613e2 100644 --- a/src/Rust/Cargo.toml +++ b/src/Rust/Cargo.toml @@ -81,6 +81,7 @@ native-dialog = "0.7" waitpid-any = "0.2" bindet = "0.3" dialog = "0.3" +libc = "0.2" [target.'cfg(windows)'.dependencies] fs_extra = "1.2" diff --git a/src/Rust/src/commands/apply.rs b/src/Rust/src/commands/apply.rs index 81a6b51a..499b5459 100644 --- a/src/Rust/src/commands/apply.rs +++ b/src/Rust/src/commands/apply.rs @@ -227,7 +227,7 @@ fn run_apply_elevated(package: Option<&PathBuf>, exe_args: Option>) -> std::fs::set_permissions(&temp_path, ::from_mode(0o755))?; 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(1, format!("APPIMAGE={}", path)); args.insert(2, temp_path.to_owned());