Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] XFCE - xflock4 won't ask password after lock screen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
awesomepandata
n00b
n00b


Joined: 04 Jan 2021
Posts: 9
Location: Brazil

PostPosted: Sun Jan 10, 2021 10:33 pm    Post subject: [SOLVED] XFCE - xflock4 won't ask password after lock screen Reply with quote

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? :P

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3875

PostPosted: Mon Jan 11, 2021 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
awesomepandata
n00b
n00b


Joined: 04 Jan 2021
Posts: 9
Location: Brazil

PostPosted: Mon Jan 11, 2021 11:54 pm    Post subject: alamahant Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum