Compare commits

...

1 Commits

Author SHA1 Message Date
Virtually Nick
36b46e63c2 [WIP]: Try out remote app settings changes. 2022-01-09 14:58:37 -05:00
2 changed files with 12 additions and 2 deletions

View File

@ -97,6 +97,12 @@ static UINT guac_rdp_rail_complete_handshake(RailClientContext* rail) {
.flags = 0x00 .flags = 0x00
}; };
client_status.flags |= TS_RAIL_CLIENTSTATUS_ZORDER_SYNC;
client_status.flags |= TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED;
client_status.flags |= TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED;
client_status.flags |= TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED;
client_status.flags |= TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED;
/* Send client status */ /* Send client status */
pthread_mutex_lock(&(rdp_client->message_lock)); pthread_mutex_lock(&(rdp_client->message_lock));
status = rail->ClientInformation(rail, &client_status); status = rail->ClientInformation(rail, &client_status);

View File

@ -1509,8 +1509,12 @@ void guac_rdp_push_settings(guac_client* client,
rdp_settings->RemoteApplicationMode = TRUE; rdp_settings->RemoteApplicationMode = TRUE;
rdp_settings->RemoteAppLanguageBarSupported = TRUE; rdp_settings->RemoteAppLanguageBarSupported = TRUE;
rdp_settings->RemoteApplicationProgram = guac_strdup(guac_settings->remote_app); rdp_settings->RemoteApplicationProgram = guac_strdup(guac_settings->remote_app);
rdp_settings->ShellWorkingDirectory = guac_strdup(guac_settings->remote_app_dir); if (guac_settings->remote_app_dir != NULL)
rdp_settings->RemoteApplicationWorkingDir = guac_strdup(guac_settings->remote_app_dir);
rdp_settings->RemoteApplicationCmdLine = guac_strdup(guac_settings->remote_app_args); rdp_settings->RemoteApplicationCmdLine = guac_strdup(guac_settings->remote_app_args);
rdp_settings->DisableWallpaper = TRUE;
rdp_settings->DisableFullWindowDrag = TRUE;
rdp_settings->Decorations = TRUE;
} }
/* Preconnection ID */ /* Preconnection ID */
@ -1556,7 +1560,7 @@ void guac_rdp_push_settings(guac_client* client,
rdp_settings->GlyphSupportLevel = !guac_settings->disable_glyph_caching ? GLYPH_SUPPORT_FULL : GLYPH_SUPPORT_NONE; rdp_settings->GlyphSupportLevel = !guac_settings->disable_glyph_caching ? GLYPH_SUPPORT_FULL : GLYPH_SUPPORT_NONE;
rdp_settings->OsMajorType = OSMAJORTYPE_UNSPECIFIED; rdp_settings->OsMajorType = OSMAJORTYPE_UNSPECIFIED;
rdp_settings->OsMinorType = OSMINORTYPE_UNSPECIFIED; rdp_settings->OsMinorType = OSMINORTYPE_UNSPECIFIED;
rdp_settings->DesktopResize = TRUE; rdp_settings->DesktopResize = FALSE;
/* Claim support only for specific updates, independent of FreeRDP defaults */ /* Claim support only for specific updates, independent of FreeRDP defaults */
ZeroMemory(rdp_settings->OrderSupport, GUAC_RDP_ORDER_SUPPORT_LENGTH); ZeroMemory(rdp_settings->OrderSupport, GUAC_RDP_ORDER_SUPPORT_LENGTH);