On 02/01/2012 05:09 PM, Anders Johansson wrote:
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
Anders, Malcolm, Thanks! The XAUTHORITY bit was the bit I was missing. I'll also pull fbcat and give that a go. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org