Skip to content

Commit

Permalink
fix: run vicc using bash + restart pcscd beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianMika committed Dec 7, 2023
1 parent e3aaf05 commit e5e4d84
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src-tauri/src/process/process_executor/linux_process_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ impl ProcessExecutor for LinuxProcessExecutor {
}

fn create_pcsc_process(&self) -> Result<Child, ProcessManagerError> {
let pcsc_child = Command::new("sh")
.arg("vicc")
.arg("-t")
.arg("meesign")
let _ = Command::new("bash")
.arg("-c")
.arg("timeout 3 sudo systemctl restart pcscd")
.output()?
.status;
let pcsc_child = Command::new("bash")
.arg("-c")
.arg("vicc -t meesign")
.spawn()?;
debug!(
"PC/SC process has been spawned with PID {}",
Expand Down

0 comments on commit e5e4d84

Please sign in to comment.