File virtview-dont-show-Domain-0.patch of Package virt-viewer

--- virt-viewer-10.0/src/virt-viewer.c.orig	2021-04-21 15:27:45.741347909 +0200
+++ virt-viewer-10.0/src/virt-viewer.c	2021-04-21 15:27:29.629291351 +0200
@@ -820,6 +820,8 @@
     vms_running = virConnectListAllDomains(conn, &domains, flags);
     for (i = 0; i < vms_running; i++) {
         const char *name = virDomainGetName(domains[i]);
+        if (name == NULL || !strcmp(name, "Domain-0"))
+            continue;
         char *title = virDomainGetMetadata(domains[i], VIR_DOMAIN_METADATA_TITLE, NULL, 0);
         char *description = virDomainGetMetadata(domains[i], VIR_DOMAIN_METADATA_DESCRIPTION, NULL, 0);
         gtk_list_store_append(model, &iter);
openSUSE Build Service is sponsored by