[Bug 41400] Re: Can't easily tell if printer is local or not

Martin Pitt martin.pitt at ubuntu.com
Thu May 18 09:11:12 UTC 2006


Work theory  so far:

gnome_cups_printer_get_is_local (GnomeCupsPrinter *printer)
{
  g_return_val_if_fail (GNOME_CUPS_IS_PRINTER (printer), FALSE);
  return (printer->details->device_uri != NULL) && 
   (strcmp (printer->details->device_uri, "") != 0);
}

is wrong, since device_uri will be nonempty also for network printers.
Changing that to test for http://, ipp://, and smb:// URLs should fix
it.

** Changed in: gnome-cups-manager (Ubuntu)
       Status: Unconfirmed => In Progress

** Changed in: gnome-cups-manager (Ubuntu)
     Assignee: (unassigned) => Ubuntu Printing Team

-- 
Can't easily tell if printer is local or not
https://launchpad.net/bugs/41400




More information about the desktop-bugs mailing list