View previous topic :: View next topic |
Author |
Message |
awesomepandata n00b
Joined: 04 Jan 2021 Posts: 9 Location: Brazil
|
Posted: Sun Jan 10, 2021 10:33 pm Post subject: [SOLVED] XFCE - xflock4 won't ask password after lock screen |
|
|
Xflock locks the screen, but never asks for a password at any time.
If I type in the terminal xflock4 it locks normally, suspend, but also without asking for the user password.
Any Jedi knows something for help?
Tip: Using lightdm as a display manager.
Last edited by awesomepandata on Mon Jan 11, 2021 11:54 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3875
|
Posted: Mon Jan 11, 2021 1:04 pm Post subject: |
|
|
Hi
I think it might be a polkit thing.
Try creating a file
/etc/polkit-1/rules.d/40-lockscreen.rules
Code: |
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.lock-sessions" ||
action.id == "org.freedesktop.login1.suspend"
{
return polkit.Result.NO;
}
});
|
If you get problems then just delete the file.
You can get a full list of polkit rules by typing
pkaction
and more info on any rule by
pkaction -v -a <rule-name>
BUT
before doing all this maybe you should try xfce power settings from the desktop. _________________
|
|
Back to top |
|
|
awesomepandata n00b
Joined: 04 Jan 2021 Posts: 9 Location: Brazil
|
Posted: Mon Jan 11, 2021 11:54 pm Post subject: alamahant |
|
|
alamahant wrote: | Hi
I think it might be a polkit thing.
Try creating a file
/etc/polkit-1/rules.d/40-lockscreen.rules
Code: |
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.lock-sessions" ||
action.id == "org.freedesktop.login1.suspend"
{
return polkit.Result.NO;
}
});
|
If you get problems then just delete the file.
You can get a full list of polkit rules by typing
pkaction
and more info on any rule by
pkaction -v -a <rule-name>
BUT
before doing all this maybe you should try xfce power settings from the desktop. |
Thanks, that worked! |
|
Back to top |
|
|
|