From 50e683c3f6710d39a9455da56121c37d37c4ad5e Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" Date: Fri, 30 Jun 2023 10:04:08 +0300 Subject: [PATCH] try fixing exec --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bd42ca5..7becc83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,7 +117,7 @@ fn build_ui(app: &Application) { fn modify_package(package: &str, driver_button: &Button) { println!("Start installing driver {}: ", package); let wrapper_command = Command::new("x-terminal-emulator") - .args(["-e", "bash", "-c", "/usr/lib/pika/drivers/modify-driver.sh", package]) + .args(["-e", "bash", "-c", "/usr/lib/pika/drivers/modify-driver.sh {}", package]) .output() .unwrap(); if wrapper_command.status.success() { @@ -132,7 +132,7 @@ fn modify_package(package: &str, driver_button: &Button) { driver_button_refresh(package, driver_button); println!("Sending error message.\n"); let _error_command = Command::new("bash") - .args(["-c", "/usr/lib/pika/drivers/dialog-error.sh", package]) + .args(["-c", "/usr/lib/pika/drivers/dialog-error.sh {}", package]) .output() .unwrap(); }