diff options
Diffstat (limited to 'source/kde/kde/post-install/plasma-workspace')
4 files changed, 56 insertions, 0 deletions
diff --git a/source/kde/kde/post-install/plasma-workspace/pam.d/kde b/source/kde/kde/post-install/plasma-workspace/pam.d/kde new file mode 100644 index 000000000..50e0f53d2 --- /dev/null +++ b/source/kde/kde/post-install/plasma-workspace/pam.d/kde @@ -0,0 +1,10 @@ +#%PAM-1.0 +auth include system-auth +auth include postlogin +account include system-auth +password include system-auth +session include system-auth +session required pam_loginuid.so +-session optional pam_ck_connector.so nox11 +-session optional pam_elogind.so +session include postlogin diff --git a/source/kde/kde/post-install/plasma-workspace/scripts/startkwayland b/source/kde/kde/post-install/plasma-workspace/scripts/startkwayland new file mode 100644 index 000000000..2d8cf55b3 --- /dev/null +++ b/source/kde/kde/post-install/plasma-workspace/scripts/startkwayland @@ -0,0 +1,4 @@ +#!/bin/sh + +# Start KWin as a Plasma 5 Wayland session +dbus-launch --sh-syntax --exit-with-session /usr/bin/startplasma-wayland diff --git a/source/kde/kde/post-install/plasma-workspace/xinit/xinitrc.kde b/source/kde/kde/post-install/plasma-workspace/xinit/xinitrc.kde new file mode 100644 index 000000000..b0a920f58 --- /dev/null +++ b/source/kde/kde/post-install/plasma-workspace/xinit/xinitrc.kde @@ -0,0 +1,33 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# Start the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + ck-launch-session dbus-launch --sh-syntax --exit-with-session startplasma-x11 +else + dbus-launch --sh-syntax --exit-with-session startplasma-x11 +fi + diff --git a/source/kde/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop b/source/kde/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop new file mode 100644 index 000000000..e166414fa --- /dev/null +++ b/source/kde/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Exec=dbus-run-session /usr/bin/startplasma-x11 --failsafe +TryExec=/usr/bin/startplasma-x11 +DesktopNames=KDE +Name=Plasma (Failsafe) +Comment=Plasma by KDE (Failsafe) + |