diff --git a/modules/printbackends/gtkprintbackendcups.c b/modules/printbackends/gtkprintbackendcups.c index b168d34368..c3ba93e639 100644 --- a/modules/printbackends/gtkprintbackendcups.c +++ b/modules/printbackends/gtkprintbackendcups.c @@ -3171,8 +3171,8 @@ avahi_service_resolver_cb (GObject *source_object, if (data->resource_path != NULL) { if (data->got_printer_type && - (g_strcmp0 (data->resource_path, "printers/") == 0 || - g_strcmp0 (data->resource_path, "classes/") == 0)) + (g_str_has_prefix (data->resource_path, "printers/") || + g_str_has_prefix (data->resource_path, "classes/"))) { /* This is a CUPS printer advertised via Avahi */ printer_name = g_strrstr (data->resource_path, "/");