minor fixes

This commit is contained in:
LDprg 2023-10-07 19:32:38 +02:00
parent 437a43c7fe
commit d80db16973
2 changed files with 9 additions and 4 deletions

View File

@ -29,7 +29,7 @@ fn main() {
println!("Connecting to remote");
let config = winapps::load_config(None);
client.run_app(config, "explorer");
client.run_app(config, "explorer.exe");
}
Some((_, _)) => {
cli.about("Command not found, try existing ones!")

View File

@ -19,19 +19,24 @@ pub mod freerdp_back {
println!("All dependencies found!");
println!("Running explorer as test!");
self.run_app(config, "explorer");
self.run_app(config, "explorer.exe");
println!("Test finished!");
}
fn run_app(&self, config: Config, _app: &str) {
fn run_app(&self, config: Config, app: &str) {
let mut xfreerdp = Command::new("xfreerdp");
xfreerdp.args([
//"/app:".to_owned() + app,
"/app:".to_owned() + app,
"/d:".to_owned() + &config.rdp.domain,
"/u:".to_owned() + &config.rdp.username,
"/p:".to_owned() + &config.rdp.password,
"/v:".to_owned() + &config.rdp.host,
"/dynamic-resolution".to_owned(),
"+auto-reconnect".to_owned(),
"+clipboard".to_owned(),
"+home-drive".to_owned(),
"-wallpaper".to_owned(),
]);
xfreerdp.spawn().expect("Freerdp execution failed!");
}