Comment 1 for bug 233784

Revision history for this message
Procion (klebed) wrote :

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.