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