❦ 19 juillet 2012 18:12 CEST, Vivian Brégier <vivian.breg...@are-ata.org> :

> You might also need to set XAUTHORITY variable too, or the X server
> will refuse the connection.
> Easiest is to import awesome's environment, for example :
>
> eval $(tr '\0' ' ' < /proc/$(pgrep awesome)/environ) scrot

Oh, that's a useful command line to know! In the case of XAUTHORITY, if
it is not set, it should default to ~/.Xauthority which should be
correct unless you are using gdm3. In this case, you may want to add
this snippet in your ~/.xsession:

# GDM move Xauthority in some obscure place
# See:
#  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614972
#  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586685
[ "$XAUTHORITY" = $HOME/.Xauthority ] || {
    XAUTHORITY=$HOME/.Xauthority xauth merge $XAUTHORITY
    export XAUTHORITY=$HOME/.Xauthority
}
-- 
Use variable names that mean something.
            - The Elements of Programming Style (Kernighan & Plauger)

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to