[gtk] printing: Fill device URI for non-Avahi printers



commit 6ddc214e6845f26366825d77481af54c691679f9
Author: Marek Kasik <mkasik redhat com>
Date:   Fri Dec 13 17:52:21 2019 +0100

    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.

 modules/printbackends/gtkprintbackendcups.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/modules/printbackends/gtkprintbackendcups.c b/modules/printbackends/gtkprintbackendcups.c
index db8a985d82..99d421f224 100644
--- a/modules/printbackends/gtkprintbackendcups.c
+++ b/modules/printbackends/gtkprintbackendcups.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]