I suggest dirty solve for the problem. At sources of tsclient in support.c file, add something like:
// Added support for mapping local printers to remote desktop
FILE* fptr;
gchar *prn_filename = g_build_path ("/", tsc_home_path(), "printers.list", NULL);
if ((fptr = fopen(prn_filename, "rd")) != NULL) {
gchar *prnline = fgets(fptr) ; sprintf(buffer, "-r printer:%s", prnline); c_argv[c_argc++] = g_strdup (buffer);
fclose (fptr);
}
I don't have time to find out how to get printers list from system. If somebody can help with it, it would be great!
I'am just new in linux and for now have problem with compilation of tsclient sources. I just dont understand why ./configure don't create makefile.
I suggest dirty solve for the problem. At sources of tsclient in support.c file, add something like:
// Added support for mapping local printers to remote desktop
sprintf( buffer, "-r printer:%s", prnline);
c_argv[ c_argc+ +] = g_strdup (buffer);
FILE* fptr;
gchar *prn_filename = g_build_path ("/", tsc_home_path(), "printers.list", NULL);
if ((fptr = fopen(prn_filename, "rd")) != NULL) {
gchar *prnline = fgets(fptr) ;
fclose (fptr);
}
I don't have time to find out how to get printers list from system. If somebody can help with it, it would be great!
I'am just new in linux and for now have problem with compilation of tsclient sources. I just dont understand why ./configure don't create makefile.