diff options
Diffstat (limited to 'kde/post-install')
-rw-r--r-- | kde/post-install/plasma-workspace.post-install | 9 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace/scripts/startkwayland | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/kde/post-install/plasma-workspace.post-install b/kde/post-install/plasma-workspace.post-install index 15ad278..ebeb5e0 100644 --- a/kde/post-install/plasma-workspace.post-install +++ b/kde/post-install/plasma-workspace.post-install @@ -6,6 +6,15 @@ cat $CWD/post-install/plasma-workspace/xinit/xinitrc.plasma \ | sed -e "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" \ > $PKG/etc/X11/xinit/xinitrc.plasma chmod 0755 $PKG/etc/X11/xinit/xinitrc.plasma +mkdir -p $PKG/usr/bin +cat $CWD/post-install/plasma-workspace/scripts/startkwayland \ + | sed -e "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" \ + > $PKG/usr/bin/startkwayland +chmod 0755 $PKG/usr/bin/startkwayland + +# ck-launch-session is needed for a Wayland session, since we do not have PAM: +sed -e 's/^Exec=dbus-launch/Exec=ck-launch-session dbus-launch --sh-syntax/' \ + -i $PKG/usr/share/wayland-sessions/plasmawayland.desktop # Add a "fail-safe" version of KDE Plasma desktop session. # Prefix the name with "z_" because SDDM is braindead: diff --git a/kde/post-install/plasma-workspace/scripts/startkwayland b/kde/post-install/plasma-workspace/scripts/startkwayland new file mode 100644 index 0000000..506e276 --- /dev/null +++ b/kde/post-install/plasma-workspace/scripts/startkwayland @@ -0,0 +1,4 @@ +#!/bin/sh + +# Start KWin as a Plasma 5 Wayland session +ck-launch-session dbus-launch --sh-syntax --exit-with-session /usr/bin/startplasmacompositor |