forked from srbala/fedora-kickstarts
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 <ngompa13@gmail.com>
This commit is contained in:
parent
b3ea494b7c
commit
ebe3cfa4b3
@ -22,15 +22,22 @@ EOF
|
|||||||
# add initscript
|
# add initscript
|
||||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
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
|
# set up autologin for user liveuser
|
||||||
if [ -f /etc/sddm.conf ]; then
|
if [ -f /etc/sddm.conf ]; then
|
||||||
sed -i 's/^#User=.*/User=liveuser/' /etc/sddm.conf
|
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
|
else
|
||||||
cat > /etc/sddm.conf << SDDM_EOF
|
cat > /etc/sddm.conf << SDDM_EOF
|
||||||
[Autologin]
|
[Autologin]
|
||||||
User=liveuser
|
User=liveuser
|
||||||
Session=plasma.desktop
|
Session=\${PLASMA_SESSION_FILE}
|
||||||
SDDM_EOF
|
SDDM_EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user