On Fri, 1 Mar 2024 11:28:45 +0100 Reza Housseini <reza.housse...@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))) ```