printing: Fill device URI for non-Avahi printers

Device URI was not filled for non-Avahi printers by my previous commit.
I've added it back. It was a mistake during rebasing of the patch
to current master.
This commit is contained in:
Marek Kasik 2019-12-13 17:52:21 +01:00
parent 91a802a1e5
commit 6ddc214e68

View File

@ -2413,6 +2413,11 @@ cups_create_printer (GtkPrintBackendCups *cups_backend,
cups_printer->device_uri = g_strdup_printf ("/%s",
info->avahi_resource_path);
}
else
{
cups_printer->device_uri = g_strdup_printf ("/printers/%s",
info->printer_name);
}
/* Check to see if we are looking at a class */
if (info->member_uris)