From 476ecf7feed44f1f039297f07978504c41ab87d4 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 24 Sep 2013 17:12:18 -0400 Subject: [PATCH] virt-manager: Avoid a deprecation warning on f20 --- virt-manager | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/virt-manager b/virt-manager index e23f6f1ad..a80c837f9 100755 --- a/virt-manager +++ b/virt-manager @@ -37,7 +37,12 @@ from virtinst import cli as virtinstcli from virtcli import cliutils, cliconfig -GObject.threads_init() +try: + # Avoid a deprecation warning about threads_init + import gi + gi.check_version("3.9.1") +except (ValueError, AttributeError): + GObject.threads_init() def _show_startup_error(msg, details):