When I connect to a RemoteApp using the following code:
@Override
protected GuacamoleTunnel createTunnel(Session session, EndpointConfig config) throws GuacamoleException {
// Create our configuration
GuacamoleConfiguration guacConfig = new GuacamoleConfiguration();
guacConfig.setProtocol("rdp");
guacConfig.setParameter("security", "any");
guacConfig.setParameter("hostname", HOST);
guacConfig.setParameter("port", PORT);
guacConfig.setParameter("username", USER);
guacConfig.setParameter("password", SECRET);
guacConfig.setParameter("ignore-cert", "true");
guacConfig.setParameter("remote-app", "||calc");
// Connect to guacd
GuacamoleSocket socket = new ConfiguredGuacamoleSocket(
new InetGuacamoleSocket(GUACD_HOST, GUACD_PORT),
guacConfig
);
return new SimpleGuacamoleTunnel(socket);
}
I connect just fine, but the remote app is displayed in a big black box.
Is there any way to crop the display to the remote-app only?
Also, closing the page does not close the remote-app on the server, so when I'd refresh the page, i'd end up with two calculators, any tips on that too?