Add drive-path parameter.
This commit is contained in:
parent
7b843a806f
commit
c31e3b38ad
@ -101,6 +101,7 @@ const char* GUAC_CLIENT_ARGS[] = {
|
||||
"disable-audio",
|
||||
"enable-printing",
|
||||
"enable-drive",
|
||||
"drive-path",
|
||||
"console",
|
||||
"console-audio",
|
||||
"server-layout",
|
||||
@ -124,6 +125,7 @@ enum RDP_ARGS_IDX {
|
||||
IDX_DISABLE_AUDIO,
|
||||
IDX_ENABLE_PRINTING,
|
||||
IDX_ENABLE_DRIVE,
|
||||
IDX_DRIVE_PATH,
|
||||
IDX_CONSOLE,
|
||||
IDX_CONSOLE_AUDIO,
|
||||
IDX_SERVER_LAYOUT,
|
||||
@ -539,6 +541,9 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
||||
guac_client_data->settings.drive_enabled =
|
||||
(strcmp(argv[IDX_ENABLE_DRIVE], "true") == 0);
|
||||
|
||||
/* Drive enable/disable */
|
||||
guac_client_data->settings.drive_path = strdup(argv[IDX_DRIVE_PATH]);
|
||||
|
||||
/* Store client data */
|
||||
guac_client_data->rdp_inst = rdp_inst;
|
||||
guac_client_data->bounded = FALSE;
|
||||
|
@ -150,6 +150,12 @@ typedef struct guac_rdp_settings {
|
||||
*/
|
||||
int drive_enabled;
|
||||
|
||||
/**
|
||||
* The local system path which will be used to persist the
|
||||
* virtual drive.
|
||||
*/
|
||||
char* drive_path;
|
||||
|
||||
/**
|
||||
* Whether this session is a console session.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user