set DISPLAY before running gnome-screensaver-command
This commit is contained in:
parent
2971e5b45b
commit
4938092205
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
export DISPLAY=:0
|
||||
|
||||
# no message if one is displayed already
|
||||
if [[ "$(ps -efww | grep -v grep | grep gxmessage)" != "" ]]; then
|
||||
exit
|
||||
@ -13,5 +15,4 @@ if [ "$(gnome-screensaver-command --query | grep is.active)" != "" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
export DISPLAY=:0
|
||||
gxmessage 'Rest your eyes!'
|
||||
|
Loading…
x
Reference in New Issue
Block a user