179 |
fprintf(stderr, " '-r printer:mydeskjet': enable printer redirection\n"); |
fprintf(stderr, " '-r printer:mydeskjet': enable printer redirection\n"); |
180 |
fprintf(stderr, |
fprintf(stderr, |
181 |
" or mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n"); |
" or mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n"); |
182 |
fprintf(stderr, " '-r sound:[local|off|remote]': enable sound redirection\n"); |
#ifdef WITH_RDPSND |
183 |
|
fprintf(stderr, |
184 |
|
" '-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection\n"); |
185 |
fprintf(stderr, " remote would leave sound on server\n"); |
fprintf(stderr, " remote would leave sound on server\n"); |
186 |
|
fprintf(stderr, " available drivers for 'local':\n"); |
187 |
|
rdpsnd_show_help(); |
188 |
|
#endif |
189 |
fprintf(stderr, |
fprintf(stderr, |
190 |
" '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard\n"); |
" '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard\n"); |
191 |
fprintf(stderr, " redirection.\n"); |
fprintf(stderr, " redirection.\n"); |
408 |
BOOL geometry_option = False; |
BOOL geometry_option = False; |
409 |
int run_count = 0; /* Session Directory support */ |
int run_count = 0; /* Session Directory support */ |
410 |
BOOL continue_connect = True; /* Session Directory support */ |
BOOL continue_connect = True; /* Session Directory support */ |
411 |
|
char *rdpsnd_optarg = NULL; |
412 |
|
|
413 |
#ifdef HAVE_LOCALE_H |
#ifdef HAVE_LOCALE_H |
414 |
/* Set locale according to environment */ |
/* Set locale according to environment */ |
669 |
|
|
670 |
if (str_startswith(optarg, "local")) |
if (str_startswith(optarg, "local")) |
671 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
672 |
|
{ |
673 |
|
rdpsnd_optarg = |
674 |
|
next_arg(optarg, ':'); |
675 |
g_rdpsnd = True; |
g_rdpsnd = True; |
676 |
|
} |
677 |
|
|
678 |
#else |
#else |
679 |
warning("Not compiled with sound support\n"); |
warning("Not compiled with sound support\n"); |
680 |
#endif |
#endif |
887 |
|
|
888 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
889 |
if (g_rdpsnd) |
if (g_rdpsnd) |
890 |
rdpsnd_init(); |
{ |
891 |
|
if (!rdpsnd_init(rdpsnd_optarg)) |
892 |
|
{ |
893 |
|
warning("Initializing sound-support failed!\n"); |
894 |
|
} |
895 |
|
} |
896 |
#endif |
#endif |
897 |
|
|
898 |
if (lspci_enabled) |
if (lspci_enabled) |