--- virtManager/createconn.py.orig	2025-08-31 10:46:42
+++ virtManager/createconn.py	2025-08-31 10:48:20
@@ -25,16 +25,16 @@
             return "xen:///"
 
     if (
-        os.path.exists("/usr/bin/qemu")
-        or os.path.exists("/usr/bin/qemu-kvm")
-        or os.path.exists("/usr/bin/kvm")
-        or os.path.exists("/usr/libexec/qemu-kvm")
-        or glob.glob("/usr/bin/qemu-system-*")
+        os.path.exists("@PREFIX@/bin/qemu")
+        or os.path.exists("@PREFIX@/bin/qemu-kvm")
+        or os.path.exists("@PREFIX@/bin/kvm")
+        or os.path.exists("@PREFIX@/libexec/qemu-kvm")
+        or glob.glob("@PREFIX@/bin/qemu-system-*")
     ):
         return "qemu:///system"
 
-    if os.path.exists("/usr/lib/libvirt/libvirt_lxc") or os.path.exists(
-        "/usr/lib64/libvirt/libvirt_lxc"
+    if os.path.exists("@PREFIX@/lib/libvirt/libvirt_lxc") or os.path.exists(
+        "@PREFIX@/lib64/libvirt/libvirt_lxc"
     ):
         return "lxc:///"
     return None
