Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LDprg committed Oct 7, 2023
1 parent 437a43c commit d80db16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion winapps-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down
11 changes: 8 additions & 3 deletions winapps/src/freerdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
Expand Down

0 comments on commit d80db16

Please sign in to comment.