[virt-tools-list] [PATCH] Don't open the default display while parsing command line
Eduardo Lima (Etrunko)
etrunko at redhat.com
Fri Feb 26 20:04:46 UTC 2016
Since commit a9ce19f it has not been possible to check app version from
a tty without X session running. The issue is that gtk_get_option_group
function opens the default display if passed TRUE as argument.
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
src/virt-viewer-app.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index d31acd3..3fa80a5 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1920,7 +1920,7 @@ virt_viewer_app_local_command_line (GApplication *gapp,
g_option_context_set_main_group(context, group);
VIRT_VIEWER_APP_GET_CLASS(self)->add_option_entries(self, context, group);
- g_option_context_add_group(context, gtk_get_option_group(TRUE));
+ g_option_context_add_group(context, gtk_get_option_group(FALSE));
#ifdef HAVE_GTK_VNC
g_option_context_add_group(context, vnc_display_get_option_group());
--
2.5.0
More information about the virt-tools-list
mailing list