mirror of
https://github.com/winapps-org/winapps.git
synced 2026-12-01 11:55:54 -05:00
26 lines
668 B
Rust
26 lines
668 B
Rust
pub mod freerdp_back {
|
|
use std::process::{Command, Stdio};
|
|
|
|
use crate::{Config, RemoteClient};
|
|
|
|
pub struct Freerdp {}
|
|
|
|
impl RemoteClient for Freerdp {
|
|
fn check_depends(&self, _config: Config) {
|
|
let mut xfreerdp = Command::new("xfreerdp");
|
|
xfreerdp.stdout(Stdio::null());
|
|
xfreerdp.args(["-h"]);
|
|
xfreerdp
|
|
.spawn()
|
|
.expect("Freerdp execution failed! It needs to be installed!");
|
|
println!("Freerdp found!");
|
|
|
|
println!("Checks success!");
|
|
}
|
|
|
|
fn run_app(&self, _config: Config, _app: &str) {
|
|
todo!()
|
|
}
|
|
}
|
|
}
|