You are not logged in.

#1 2008-09-13 19:46:25

dante4d
Member
From: Czech Republic
Registered: 2007-04-14
Posts: 176

[SOLVED]Getting osd_cat message onscreen when run from ACPI handler.sh

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

#2 2008-09-13 20:48:00

dante4d
Member
From: Czech Republic
Registered: 2007-04-14
Posts: 176

Re: [SOLVED]Getting osd_cat message onscreen when run from ACPI handler.sh

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

Board footer

Powered by FluxBB