[gnome-boxes] libvirt-machine: Don't warn when system libvirt isn't available



commit 5c14fc934f34660ecf313b5697fba85b160c3344
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Dec 16 15:51:32 2021 +0100

    libvirt-machine: Don't warn when system libvirt isn't available
    
    We don't need to throw a warning for it. And it doesn't work for
    Flatpak instances anyway.

 src/libvirt-machine.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 89579d8e..93b6bf24 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -255,7 +255,8 @@ else if (force_stopped) {
         try {
             system_virt_connection = yield get_system_virt_connection ();
         } catch (GLib.Error error) {
-            warning ("Failed to connection to system libvirt: %s", error.message);
+            if (!App.is_running_in_flatpak ())
+                message ("Failed to connection to system libvirt: %s", error.message);
         }
 
         update_status ();


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