[virt-tools-list] [virt-viewer 20/20] Accept ovirt:// URIs in add_recent

Christophe Fergeau cfergeau at redhat.com
Wed Jun 13 12:23:28 UTC 2012


---
 src/remote-viewer-main.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
index 156bd0b..9a8fce0 100644
--- a/src/remote-viewer-main.c
+++ b/src/remote-viewer-main.c
@@ -170,7 +170,9 @@ recent_add(gchar *uri)
     if (uri == NULL)
         return;
 
-    g_return_if_fail(g_str_has_prefix(uri, "spice://") || g_str_has_prefix(uri, "vnc://"));
+    g_return_if_fail(g_str_has_prefix(uri, "spice://")
+                         || g_str_has_prefix(uri, "vnc://")
+                         || g_str_has_prefix(uri, "ovirt://"));
 
     recent = gtk_recent_manager_get_default();
     meta.display_name = uri;
-- 
1.7.10.2




More information about the virt-tools-list mailing list