From 679fb78bdd277f1f51c4f79778d982776aea3b73 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 19 Mar 2018 11:00:58 +0100 Subject: [PATCH] Disable wayland if gdm is available --- xorg-x11-drv-nvidia.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec index 1403986..faec47c 100644 --- a/xorg-x11-drv-nvidia.spec +++ b/xorg-x11-drv-nvidia.spec @@ -405,6 +405,11 @@ if [ "$1" -eq "1" ]; then %if 0%{?fedora} || 0%{?rhel} >= 7 sed -i -e 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="%{_dracutopts} /g' /etc/default/grub %endif +%if 0%{?fedora} && 0%{?fedora} < 28 + if [ -f %{_sysconfdir}/gdm/custom.conf ] ; then + sed -i -e 's/#WaylandEnable=.*/WaylandEnable=false/' %{_sysconfdir}/gdm/custom.conf + fi +%endif fi || : %if 0%{?fedora} || 0%{?rhel} >= 7