mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-06 15:17:19 +02:00
trigger precommit
This commit is contained in:
parent
dc2f81cb3d
commit
83c61e999e
@ -1,6 +1,6 @@
|
|||||||
use clap::Command;
|
pub(crate) use clap::Command;
|
||||||
use winapps::RemoteClient;
|
|
||||||
use winapps::freerdp::freerdp_back::Freerdp;
|
use winapps::freerdp::freerdp_back::Freerdp;
|
||||||
|
use winapps::RemoteClient;
|
||||||
|
|
||||||
fn cli() -> Command {
|
fn cli() -> Command {
|
||||||
Command::new("winapps-cli")
|
Command::new("winapps-cli")
|
||||||
|
@ -1,24 +1,27 @@
|
|||||||
pub mod freerdp_back {
|
pub mod freerdp_back {
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
|
|
||||||
use crate::{RemoteClient, Config};
|
use crate::{Config, RemoteClient};
|
||||||
|
|
||||||
pub struct Freerdp {}
|
pub struct Freerdp {}
|
||||||
|
|
||||||
impl RemoteClient for Freerdp {
|
impl RemoteClient for Freerdp {
|
||||||
fn check_depends(&self, _config: Config) {
|
fn check_depends(&self, _config: Config) {
|
||||||
|
|
||||||
let mut xfreerdp = Command::new("xfreerdp");
|
let mut xfreerdp = Command::new("xfreerdp");
|
||||||
xfreerdp.stdout(Stdio::null());
|
xfreerdp.stdout(Stdio::null());
|
||||||
xfreerdp.args(["-h"]);
|
xfreerdp.args(["-h"]);
|
||||||
xfreerdp.spawn().expect("Freerdp execution failed! It needs to be installed!");
|
xfreerdp
|
||||||
|
.spawn()
|
||||||
|
.expect("Freerdp execution failed! It needs to be installed!");
|
||||||
println!("Freerdp found!");
|
println!("Freerdp found!");
|
||||||
|
|
||||||
println!("All dependencies found!");
|
println!("All dependencies found!");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run_app(&self, config: Config, _app: &str) {
|
fn run_app(&self, _config: Config, _app: &str) {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user