Using the rdp file to connect to a specific application shows a blue screen, and the application is not displayed.
I directly modified the settings in the frdp source code, so that the rdp file can be used to connect to a specific application, but in the end, the connection was successful, but the application screen did not appear, but the blue screen was always on. It is normal for xfreerdp to use this rdp file to connect.
...
settings->DesktopResize = TRUE;
settings->DynamicResolutionUpdate = TRUE;
settings->SupportDisplayControl = TRUE;
settings->RedirectClipboard = FALSE;
settings->KeyboardLayout = freerdp_keyboard_init (0);
// load rdp file
rdpFile* file;
int ret = -1;
file = freerdp_client_rdp_file_new();
if (!file)
goto out;
if (!freerdp_client_parse_rdp_file(file, "/home/wdh/Desktop/windows.rdp")) {
printf("--- %s:%d --- \n", __FILE__, __LINE__);
goto out;
}
if (!freerdp_client_populate_settings_from_rdp_file(file, settings))
goto out;
out:
freerdp_client_rdp_file_free(file);