On Wednesday 01 February 2012 16:58:39 David C. Rankin wrote:
Guys,
I need to make a screenshot of the kdm greeter from tty1. All of the examples show using:
import -display :0.0 -window root somefile.png
It doesn't work. Unable to open display.
Have you set the XAUTHORITY environment variable to an appropriate value? If you do "ps aux|grep X" you'll find the X server that kdm is using, and it will have a parameter -auth pointing to the authentication cookie that you need to use. It will be something like /var/lib/xdm/authdir/authfiles/A:0-foobar If you then do export XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-foobar then your import command should work Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org