try fixing exec
This commit is contained in:
parent
91d9451259
commit
50e683c3f6
@ -117,7 +117,7 @@ fn build_ui(app: &Application) {
|
|||||||
fn modify_package(package: &str, driver_button: &Button) {
|
fn modify_package(package: &str, driver_button: &Button) {
|
||||||
println!("Start installing driver {}: ", package);
|
println!("Start installing driver {}: ", package);
|
||||||
let wrapper_command = Command::new("x-terminal-emulator")
|
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()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if wrapper_command.status.success() {
|
if wrapper_command.status.success() {
|
||||||
@ -132,7 +132,7 @@ 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])
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user