summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/use-pam-before-classic.diff
blob: 4f2a0000859f46015e51eca9728642e4955ca293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
 }