File virtman-check-for-libvirt-modular-daemons.patch of Package virt-manager.32669
References: bsc#1212195
--- virt-manager-4.1.0/virtManager/lib/connectauth.py.orig	2023-06-13 16:34:55.683255450 -0600
+++ virt-manager-4.1.0/virtManager/lib/connectauth.py	2023-06-13 16:35:22.499256089 -0600
@@ -206,6 +206,11 @@ def connect_error(conn, errmsg, tb, warn
 def setup_first_uri(config, tryuri):
     # Add /usr/sbin to the path in case non-root user launches virt-manager
     libvirtd_installed = bool(shutil.which("libvirtd", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
+    # Check for new modular libvirt daemons
+    if libvirtd_installed is False:
+        libvirtd_installed = bool(shutil.which("virtqemud", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
+    if libvirtd_installed is False:
+        libvirtd_installed = bool(shutil.which("virtxend", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
     if config.CLITestOptions.fake_no_libvirtd:
         libvirtd_installed = False