GUACAMOLE-422: Add logging for RDP timzeone.
This commit is contained in:
parent
b3be9eb869
commit
4bd19160de
@ -719,7 +719,7 @@ static int guac_rdp_handle_connection(guac_client* client) {
|
|||||||
guac_common_cursor_set_pointer(rdp_client->display->cursor);
|
guac_common_cursor_set_pointer(rdp_client->display->cursor);
|
||||||
|
|
||||||
/* Push desired settings to FreeRDP */
|
/* Push desired settings to FreeRDP */
|
||||||
guac_rdp_push_settings(settings, rdp_inst);
|
guac_rdp_push_settings(client, settings, rdp_inst);
|
||||||
|
|
||||||
/* Connect to RDP server */
|
/* Connect to RDP server */
|
||||||
if (!freerdp_connect(rdp_inst)) {
|
if (!freerdp_connect(rdp_inst)) {
|
||||||
|
@ -1169,7 +1169,8 @@ static char* guac_rdp_strdup(const char* str) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void guac_rdp_push_settings(guac_rdp_settings* guac_settings, freerdp* rdp) {
|
void guac_rdp_push_settings(guac_client* client,
|
||||||
|
guac_rdp_settings* guac_settings, freerdp* rdp) {
|
||||||
|
|
||||||
BOOL bitmap_cache = !guac_settings->disable_bitmap_caching;
|
BOOL bitmap_cache = !guac_settings->disable_bitmap_caching;
|
||||||
rdpSettings* rdp_settings = rdp->settings;
|
rdpSettings* rdp_settings = rdp->settings;
|
||||||
@ -1280,10 +1281,15 @@ void guac_rdp_push_settings(guac_rdp_settings* guac_settings, freerdp* rdp) {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Device redirection */
|
/* Timezone redirection */
|
||||||
if (guac_settings->timezone)
|
if (guac_settings->timezone) {
|
||||||
setenv("TZ", guac_settings->timezone, 1)
|
if(setenv("TZ", guac_settings->timezone, 1)) {
|
||||||
|
guac_client_log(client, GUAC_LOG_WARNING,
|
||||||
|
"Unable to set TZ variable, error %i", errno);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Device redirection */
|
||||||
#ifdef LEGACY_RDPSETTINGS
|
#ifdef LEGACY_RDPSETTINGS
|
||||||
#ifdef HAVE_RDPSETTINGS_DEVICEREDIRECTION
|
#ifdef HAVE_RDPSETTINGS_DEVICEREDIRECTION
|
||||||
rdp_settings->device_redirection = guac_settings->audio_enabled
|
rdp_settings->device_redirection = guac_settings->audio_enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user