help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot lock screen in lxqt desktop


From: William
Subject: Re: Cannot lock screen in lxqt desktop
Date: Sun, 3 Mar 2024 00:59:33 +0100

On Fri, 1 Mar 2024 11:28:45 +0100
Reza Housseini <reza.housseini@gmail.com> wrote:

> Hi Guixers
> 
> When I click "Lock Screen" in the desktop menu I get a popup with the 
> warning
> 
>    Failed to run "xdg-screensaver lock". Ensure you have a 
> locker/screensaver compatible with xdg-screensaver installed and
> running.
> 
> I tried installing xlock and slock and setting up a screen locker 
> service [1] with no success.
> 
> Was anyone successfull running a screen locker in lxqt? And why does 
> this not work out of the box like in GNOME?
> 
> Thanks for your help!
> 
> Best,
> Reza
> 
> [1] screen-locker-service-type


Hello.

Did you add the boolean value to enable a PAM entry and disable the
setuid entry? Screenlockers usually refuse or complain when started with
setuid due to security.

Also xdg-screensaver is a frontend that is part of the xdg-utils
package. As far as I know, this program is only compatible with
xscreensaver or xautolock, you should try defining one of these
two on the screen-locker-service-type, not xdg-screensaver, and see if
it works.

Example:

```
(service screen-locker-service-type
         (screen-locker-configuration
           (name "xscreensaver")
           (program (file-append xscreensaver
"/bin/xscreensaver")) (using-pam? #t)
           (using-setuid? #f)))
```



reply via email to

[Prev in Thread] Current Thread [Next in Thread]