unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: William <willbilly@fedora.email>
To: help-guix@gnu.org
Subject: Re: Cannot lock screen in lxqt desktop
Date: Sun, 3 Mar 2024 00:59:33 +0100	[thread overview]
Message-ID: <20240303005933.5ee3d6cf@debian> (raw)
In-Reply-To: <99a2fd1d-8278-bcfd-22f5-5f3e4a6438fc@gmail.com>

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	other threads:[~2024-03-03  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 10:28 Cannot lock screen in lxqt desktop Reza Housseini
2024-03-02 23:59 ` William [this message]
2024-03-05 11:52   ` Reza Housseini
2024-03-05 13:08     ` Andreas Enge
2024-03-05 14:09     ` William via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240303005933.5ee3d6cf@debian \
    --to=willbilly@fedora.email \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).