Re: screen locker

2015-08-23 Thread Ludovic Courtès
Leo Famulari l...@famulari.name skribis:

 It seems that slock wants to have the setuid bit set.

 I see in the docs [1] that the store cannot contain setuid programs. Is
 the workaround in the docs only applicable to GuixSD, or can it be used
 with the standalone package manager?

It’s only applicable to GuixSD: The ‘setuid-programs’ field mentioned
there is for an ‘operating-system’ declaration.

Ludo’.



Re: screen locker

2015-08-23 Thread Ludovic Courtès
Marcus Moeller marcus.moel...@gmx.ch skribis:

 I wanted to install a screen locker on GuixSD and all I found was slock.

FWIW I use xlockmore and I have this:

  (operating-system
;; ...
(setuid-programs (cons #~(string-append #$xlockmore /bin/xlock)
   %setuid-programs)))

From what others wrote, slock may need to be listed there as well.

HTH,
Ludo’.



Re: screen locker

2015-08-21 Thread 宋文武
Marcus Moeller marcus.moel...@gmx.ch writes:

 Hi all.

 I wanted to install a screen locker on GuixSD and all I found was slock.

 Sadly when I try to start it as unprivileged user, I got an error like:

 cannot disable the out-of-memory-killer for this process
Same here, I think only root can run it.
(the unprivileged user can't set /proc/self/oom_score_adj).



Re: screen locker

2015-08-21 Thread Leo Famulari
On Fri, Aug 21, 2015, at 11:47, 宋文武 wrote:
 Same here, I think only root can run it.
 (the unprivileged user can't set /proc/self/oom_score_adj).

Slock on Debian (package suckless-tools) doesn't have this issue. I am
looking into how they deal with it.



Re: screen locker

2015-08-21 Thread Leo Famulari
It seems that slock wants to have the setuid bit set.

I see in the docs [1] that the store cannot contain setuid programs. Is
the workaround in the docs only applicable to GuixSD, or can it be used
with the standalone package manager?

[1]
http://www.gnu.org/software/guix/manual/html_node/Setuid-Programs.html

On Fri, Aug 21, 2015, at 13:46, Leo Famulari wrote:
 On Fri, Aug 21, 2015, at 11:47, 宋文武 wrote:
  Same here, I think only root can run it.
  (the unprivileged user can't set /proc/self/oom_score_adj).
 
 Slock on Debian (package suckless-tools) doesn't have this issue. I am
 looking into how they deal with it.
 



Re: screen locker

2015-08-21 Thread Daniel Pimentel

On 2015-08-20 04:51, Marcus Moeller wrote:

Hi all.

I wanted to install a screen locker on GuixSD and all I found was 
slock.


Sadly when I try to start it as unprivileged user, I got an error like:

cannot disable the out-of-memory-killer for this process

Greets
Marcus

You can install xlockmore and configure your password to screen locker.

Enlightenment have you own screen locker.

Gnome3 too but not available on GuixSD. In soon 3:)

So when I use Windowmaker or Xfce I was use xlockmore package.
--
Daniel Pimentel (d4n1 3:)