From 912abc9725196eded7554813e4d6adb91e66f169 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 12 Jan 2017 16:38:15 +0100 Subject: rely on Gtk+ for checking for Xserver (mga#19498) MCC also needs a separate fix for forcing using the X11 GDK backend b/c GtkPlug/Socket do not work under Wayland, thus relying on xwayland XFdrake will probably fails the same way under wayland, but anyway it's there for configuring xserver... It should probably checks for wayland before proposing to test --- perl-install/common.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index ddffb53f4..83ce5f928 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -608,8 +608,9 @@ sub check_for_xserver() { if (!defined $::xtest) { $::xtest = 0; eval { - require xf86misc::main; - $::xtest = xf86misc::main::Xtest($ENV{DISPLAY}); + require Gtk3; + Gtk3->import; + $::xtest = Gtk3::init_check(); } if $ENV{DISPLAY}; } return $::xtest; -- cgit v1.2.1