Add arguments for RemoteApp name and command.

This commit is contained in:
Michael Jumper 2014-01-29 15:58:04 -08:00
parent 8bf6f47b7e
commit 56c8c4f740
2 changed files with 24 additions and 0 deletions

View File

@ -90,6 +90,8 @@ const char* GUAC_CLIENT_ARGS[] = {
"security",
"ignore-cert",
"disable-auth",
"remote-app-name",
"remote-app-command",
NULL
};
@ -114,6 +116,8 @@ enum RDP_ARGS_IDX {
IDX_SECURITY,
IDX_IGNORE_CERT,
IDX_DISABLE_AUTH,
IDX_REMOTE_APP_NAME,
IDX_REMOTE_APP_COMMAND,
RDP_ARGS_COUNT
};
@ -510,6 +514,16 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
if (argv[IDX_INITIAL_PROGRAM][0] != '\0')
settings->initial_program = strdup(argv[IDX_INITIAL_PROGRAM]);
/* RemoteApp name */
settings->remote_app_name = NULL;
if (argv[IDX_REMOTE_APP_NAME][0] != '\0')
settings->remote_app_name = strdup(argv[IDX_REMOTE_APP_NAME]);
/* RemoteApp command */
settings->remote_app_command = NULL;
if (argv[IDX_REMOTE_APP_COMMAND][0] != '\0')
settings->remote_app_command = strdup(argv[IDX_REMOTE_APP_COMMAND]);
/* Session color depth */
settings->color_depth = RDP_DEFAULT_DEPTH;
if (argv[IDX_COLOR_DEPTH][0] != '\0')

View File

@ -181,6 +181,16 @@ typedef struct guac_rdp_settings {
*/
int disable_authentication;
/**
* The name of the application to launch, if RemoteApp is in use.
*/
char* remote_app_name;
/**
* The command to use to launch the application, if RemoteApp is in use.
*/
char* remote_app_command;
} guac_rdp_settings;
/**