You are not logged in.
I was trying to display some messages with osd_cat when I press ACPI keys, but it fails. I realized that it's probably because ACPI daemon and it's child processes don't see X display, am I right (or X windows at all, because no X stuff works).
echo "$1" | osd_cat &
When I call script with this code from console, it displays the text. When I let it be called by handler.sh, it does nothing. How can I go aroud this issue and call X programs so they associate with X properly from outside of X?
Thanks
Last edited by dante4d (2008-09-17 20:57:16)
Offline
Ok, I managed to get it working myself. I need to have these variables exported in my script:
export DISPLAY=":0.0"
export XAUTHORITY="/home/dante4d/.Xauthority"
Offline