summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <etrunko@redhat.com>2016-02-26 17:04:46 -0300
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-02-26 22:23:07 +0100
commitd18bbc6f5be2ec33445fc8e7ba5e7b9572c23e0c (patch)
tree53632f8179053aba1988048f865c5aba40057eb6 /src
parent0e0df372cfc707f559382374ba9795a9ab6698f0 (diff)
downloadvirt-viewer-d18bbc6f5be2ec33445fc8e7ba5e7b9572c23e0c.tar.gz
virt-viewer-d18bbc6f5be2ec33445fc8e7ba5e7b9572c23e0c.tar.xz
virt-viewer-d18bbc6f5be2ec33445fc8e7ba5e7b9572c23e0c.zip
Don't open the default display while parsing command line
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@redhat.com> Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/virt-viewer-app.c2
1 files changed, 1 insertions, 1 deletions
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());