Add arguments for RemoteApp name and command.
This commit is contained in:
parent
8bf6f47b7e
commit
56c8c4f740
@ -90,6 +90,8 @@ const char* GUAC_CLIENT_ARGS[] = {
|
|||||||
"security",
|
"security",
|
||||||
"ignore-cert",
|
"ignore-cert",
|
||||||
"disable-auth",
|
"disable-auth",
|
||||||
|
"remote-app-name",
|
||||||
|
"remote-app-command",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -114,6 +116,8 @@ enum RDP_ARGS_IDX {
|
|||||||
IDX_SECURITY,
|
IDX_SECURITY,
|
||||||
IDX_IGNORE_CERT,
|
IDX_IGNORE_CERT,
|
||||||
IDX_DISABLE_AUTH,
|
IDX_DISABLE_AUTH,
|
||||||
|
IDX_REMOTE_APP_NAME,
|
||||||
|
IDX_REMOTE_APP_COMMAND,
|
||||||
RDP_ARGS_COUNT
|
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')
|
if (argv[IDX_INITIAL_PROGRAM][0] != '\0')
|
||||||
settings->initial_program = strdup(argv[IDX_INITIAL_PROGRAM]);
|
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 */
|
/* Session color depth */
|
||||||
settings->color_depth = RDP_DEFAULT_DEPTH;
|
settings->color_depth = RDP_DEFAULT_DEPTH;
|
||||||
if (argv[IDX_COLOR_DEPTH][0] != '\0')
|
if (argv[IDX_COLOR_DEPTH][0] != '\0')
|
||||||
|
@ -181,6 +181,16 @@ typedef struct guac_rdp_settings {
|
|||||||
*/
|
*/
|
||||||
int disable_authentication;
|
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;
|
} guac_rdp_settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user