mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-04 06:07:19 +02:00
minor fixes
This commit is contained in:
parent
437a43c7fe
commit
d80db16973
@ -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!")
|
||||
|
@ -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!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user