From 55bb52de959214602121867d55723cf27d7684a7 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 6 Oct 2019 23:36:02 +0200 Subject: Add support for building Plasma5 on a PAM-ified Slackware Set the variable SLACKPAM to "yes" in kde/kde.options if you want to add support for PAM. These packages will be supplied by a pam-ified Slackware, so they should not be installed from 'ktown': deps:ConsoleKit2,cracklib These packages will react to SLACKPAM variable setting: plasma:kscreenlocker,plasma-workspace plasma-extra:sddm-qt5 Uncomment in kde/modules/plasma and compile: plasma:kwallet-pam --- kde/post-install/plasma-workspace/pam.d/kde | 9 +++++++++ kde/post-install/plasma-workspace/xinit/xinitrc.plasma | 18 ++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 kde/post-install/plasma-workspace/pam.d/kde (limited to 'kde/post-install/plasma-workspace') diff --git a/kde/post-install/plasma-workspace/pam.d/kde b/kde/post-install/plasma-workspace/pam.d/kde new file mode 100644 index 0000000..7acfd90 --- /dev/null +++ b/kde/post-install/plasma-workspace/pam.d/kde @@ -0,0 +1,9 @@ +#%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 include postlogin diff --git a/kde/post-install/plasma-workspace/xinit/xinitrc.plasma b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma index ff3c8a1..e70c281 100644 --- a/kde/post-install/plasma-workspace/xinit/xinitrc.plasma +++ b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma @@ -9,24 +9,30 @@ sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then - xrdb -merge $sysresources + xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then - xmodmap $sysmodmap + xmodmap $sysmodmap fi if [ -f $userresources ]; then - xrdb -merge $userresources + xrdb -merge $userresources fi if [ -f $usermodmap ]; then - xmodmap $usermodmap + xmodmap $usermodmap fi # Start the window manager: +if which startplasma-x11 1>/dev/null 2>/dev/null ; then + START_KDE=startplasma-x11 +else + START_KDE=startkde +fi if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then - ck-launch-session dbus-launch --sh-syntax --exit-with-session startkde + ck-launch-session dbus-launch --sh-syntax --exit-with-session $START_KDE else - dbus-launch --sh-syntax --exit-with-session startkde + dbus-launch --sh-syntax --exit-with-session $START_KDE fi + -- cgit v1.2.3