aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-01-27 10:08:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-01-27 10:08:07 +0100
commit0191e454bd3170d8d294b8082023d52c30fd0de8 (patch)
tree8a223dff61634ff45b9303314cce6280abaef568 /vconsole.c
parent9c5636b913668c53309d9cc6e7bae7d88c131675 (diff)
downloadvconsole-0191e454bd3170d8d294b8082023d52c30fd0de8.tar.gz
force x11 for virt-viewer
Diffstat (limited to 'vconsole.c')
-rw-r--r--vconsole.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vconsole.c b/vconsole.c
index bd28515..70ccfa7 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -398,6 +398,7 @@ static void run_virt_viewer(struct vconsole_domain *dom,
} else {
/* child */
prepare_exec();
+ setenv("GDK_BACKEND", "x11", true);
execvp("virt-viewer", argv);
perror("execvp");
exit(1);