summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/use-pam-before-classic.diff
diff options
context:
space:
mode:
Diffstat (limited to 'opensuse/tdebase/use-pam-before-classic.diff')
-rw-r--r--opensuse/tdebase/use-pam-before-classic.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/opensuse/tdebase/use-pam-before-classic.diff b/opensuse/tdebase/use-pam-before-classic.diff
new file mode 100644
index 000000000..4f2a00008
--- /dev/null
+++ b/opensuse/tdebase/use-pam-before-classic.diff
@@ -0,0 +1,17 @@
+Index: kdesktop/lock/lockprocess.cc
+===================================================================
+--- kdesktop/lock/lockprocess.cc.orig
++++ kdesktop/lock/lockprocess.cc
+@@ -364,8 +364,10 @@ void LockProcess::configure()
+ readSaver();
+
+ mPlugins = KDesktopSettings::pluginsUnlock();
+- if (mPlugins.isEmpty())
+- mPlugins = QStringList("classic");
++ if (mMethod == "pam")
++ mPlugins << mMethod;
++ if (mMethod == "pam" || mPlugins.isEmpty())
++ mPlugins << "classic";
+ mPluginOptions = KDesktopSettings::pluginOptions();
+ }
+