diff --git a/winapps-cli/src/main.rs b/winapps-cli/src/main.rs index fba3b81..a1b6a72 100644 --- a/winapps-cli/src/main.rs +++ b/winapps-cli/src/main.rs @@ -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!") diff --git a/winapps/src/freerdp.rs b/winapps/src/freerdp.rs index 760b3e1..d9378da 100644 --- a/winapps/src/freerdp.rs +++ b/winapps/src/freerdp.rs @@ -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!"); }