Try editing the command in actkbd's config file to "DISPLAY=:0 screenshot.sh". Since that runs as root, but the X instance is started for user tc, you may also need to handle the XAUTHORITY things so root can access tc's display. I don't recall offhand...
↧