2 Apr
2017
2 Apr
'17
08:07
02.04.2017 10:50, Carlos E. R. пишет:
On 2017-04-02 08:08, Andrei Borzenkov wrote:
02.04.2017 04:53, Carlos E. R. пишет:
Hi,
I wrote a /usr/lib/systemd/system-sleep/mine-sleep script. I have in it:
#!/bin/sh
case $1 in pre) echo "mine-sleep locking screen" DISPLAY=:0.0 xscreensaver-command -lock
...
Why does it fail with "xscreensaver-command: can't open display :0.0"? When I do it as root in a terminal it does work.
How exactly are you running command "as root in terminal"? After "su"? When logging in on another vt?
su -
Tried now in a vt. I get this text:
minas-tirith:~ # xscreensaver -lock
It is not the same command.