GUACAMOLE-445: Add settings for printer name.
This commit is contained in:
parent
334849e2a6
commit
b21f00c29d
@ -52,6 +52,7 @@ const char* GUAC_RDP_CLIENT_ARGS[] = {
|
|||||||
"color-depth",
|
"color-depth",
|
||||||
"disable-audio",
|
"disable-audio",
|
||||||
"enable-printing",
|
"enable-printing",
|
||||||
|
"printer-name",
|
||||||
"enable-drive",
|
"enable-drive",
|
||||||
"drive-path",
|
"drive-path",
|
||||||
"create-drive-path",
|
"create-drive-path",
|
||||||
@ -186,6 +187,11 @@ enum RDP_ARGS_IDX {
|
|||||||
*/
|
*/
|
||||||
IDX_ENABLE_PRINTING,
|
IDX_ENABLE_PRINTING,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the printer that will be passed through to the RDP server.
|
||||||
|
*/
|
||||||
|
IDX_PRINTER_NAME,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "true" if the virtual drive should be enabled, "false" or blank
|
* "true" if the virtual drive should be enabled, "false" or blank
|
||||||
* otherwise.
|
* otherwise.
|
||||||
@ -788,6 +794,11 @@ guac_rdp_settings* guac_rdp_parse_args(guac_user* user,
|
|||||||
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,
|
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,
|
||||||
IDX_ENABLE_PRINTING, 0);
|
IDX_ENABLE_PRINTING, 0);
|
||||||
|
|
||||||
|
/* Name of redirected printer */
|
||||||
|
settings->printer_name =
|
||||||
|
guac_user_parse_args_string(user, GUAC_RDP_CLIENT_ARGS, argv,
|
||||||
|
IDX_PRINTER_NAME, "Guacamole Printer");
|
||||||
|
|
||||||
/* Drive enable/disable */
|
/* Drive enable/disable */
|
||||||
settings->drive_enabled =
|
settings->drive_enabled =
|
||||||
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,
|
guac_user_parse_args_boolean(user, GUAC_RDP_CLIENT_ARGS, argv,
|
||||||
|
@ -177,6 +177,11 @@ typedef struct guac_rdp_settings {
|
|||||||
*/
|
*/
|
||||||
int printing_enabled;
|
int printing_enabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the redirected printer.
|
||||||
|
*/
|
||||||
|
char* printer_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the virtual drive is enabled.
|
* Whether the virtual drive is enabled.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user