From 75e442287be7685c32fb26878b590bbd7a810428 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 22 Apr 2021 23:58:56 -0400 Subject: [PATCH] kde: Fallback to Plasma X11 session for basic graphics mode (#1952431) The Plasma Wayland session does not work when kernel mode-setting has been disabled, so fall back to X11 automatically in this scenario. Signed-off-by: Neal Gompa --- fedora-live-kde-base.ks | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fedora-live-kde-base.ks b/fedora-live-kde-base.ks index 6583258..91da3e9 100644 --- a/fedora-live-kde-base.ks +++ b/fedora-live-kde-base.ks @@ -22,15 +22,22 @@ EOF # add initscript cat >> /etc/rc.d/init.d/livesys << EOF +# are we *not* able to use wayland sessions? +if strstr "\`cat /proc/cmdline\`" nomodeset ; then +PLASMA_SESSION_FILE="plasmax11.desktop" +else +PLASMA_SESSION_FILE="plasma.desktop" +fi + # set up autologin for user liveuser if [ -f /etc/sddm.conf ]; then sed -i 's/^#User=.*/User=liveuser/' /etc/sddm.conf -sed -i 's/^#Session=.*/Session=plasma.desktop/' /etc/sddm.conf +sed -i "s/^#Session=.*/Session=${PLASMA_SESSION_FILE}/" /etc/sddm.conf else cat > /etc/sddm.conf << SDDM_EOF [Autologin] User=liveuser -Session=plasma.desktop +Session=${PLASMA_SESSION_FILE} SDDM_EOF fi