This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-06-29 23:45:24 +03:00
parent 85533e9b2f
commit 0171f3ce73

View File

@ -33,8 +33,7 @@ fn build_ui(app: &Application) {
main_box.append(&drivers_list_row); main_box.append(&drivers_list_row);
println!("Checking HW paramter script for available drivers:\n"); println!("Checking HW paramter script for available drivers:\n");
let ubuntu_drivers_list_cli = Command::new("bash") let ubuntu_drivers_list_cli = Command::new("/usr/lib/pika/drivers/generate_driver_definitions.sh")
.args("-c", "/usr/lib/pika/drivers/generate_driver_definitions.sh")
.output() .output()
.expect("failed to execute process"); .expect("failed to execute process");
@ -133,9 +132,9 @@ fn modify_package(package: &str, driver_button: &Button) {
driver_button_refresh(package, driver_button); driver_button_refresh(package, driver_button);
println!("Sending error message.\n"); println!("Sending error message.\n");
let _error_command = Command::new("bash") 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])
.spawn() .output()
.expect("Failed to start pika-drivers error dialog"); .unwrap();
} }
} }