summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib/live
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-04-07 17:32:50 +0200
committerHolger Paradies <retabell@gmx.de>2024-04-07 20:49:16 +0200
commit32e86f246acc91d42c9a7a059b5a0cc173a9b9e0 (patch)
tree599c66d426afc49f373f22b7d376352e729cbc9d /config/chroot_local-includes/lib/live
parent4af5a772c286dfad4d1b93abf17d72df6bfca7f0 (diff)
downloadkanotix-32e86f246acc91d42c9a7a059b5a0cc173a9b9e0.zip
kanotix-32e86f246acc91d42c9a7a059b5a0cc173a9b9e0.tar.gz
Wayland on kde amd64 live-config
Plasma wayland can be started with kwayland on commandline. lightdm needs x but can start wayland.
Diffstat (limited to 'config/chroot_local-includes/lib/live')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9023-kwayland31
1 files changed, 31 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9023-kwayland b/config/chroot_local-includes/lib/live/config/9023-kwayland
new file mode 100755
index 0000000..152f32f
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/9023-kwayland
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+Kwayland ()
+{
+ # Checking if configured
+ if [ -e /var/lib/live/config/kwayland ]
+ then
+ return
+ fi
+ echo -n " kwayland"
+ Configure_kwayland
+}
+Configure_kwayland ()
+{
+ # Boot parameters can be acted up either this way...
+ if grep -qs "kwayland" /proc/cmdline
+ then
+ if [ -x /usr/bin/startplasma-wayland ]; then
+ echo "[Desktop]" >/home/${LIVE_USERNAME}/.dmrc
+ echo "Session=plasmawayland" >>/home/${LIVE_USERNAME}/.dmrc
+ chown 1000:1000 /home/${LIVE_USERNAME}/.dmrc
+ echo "[Seat:*]" >> /usr/share/lightdm/lightdm.conf.d/51_kanotix.conf
+ echo "user-session=plasmawayland" >> /usr/share/lightdm/lightdm.conf.d/51_kanotix.conf
+ fi
+ fi
+
+ # Creating state file
+ touch /var/lib/live/config/kwayland
+}
+
+Kwayland