From 6b632067948271b860cdefd621fdf8b33544bfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 3 May 2015 10:22:20 +0200 Subject: [PATCH] Update functions fix display not set when grabbing screenshots --- session/platform/linux/functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/session/platform/linux/functions b/session/platform/linux/functions index b3ff779..e9126f6 100644 --- a/session/platform/linux/functions +++ b/session/platform/linux/functions @@ -7,10 +7,15 @@ get_screenshot() { + local xwd=`which xwd` # standard xorg tool local scrot=`which scrot` # scrot is lighter local import=`which import` # imagemagick - if [ -n "$scrot" ]; then + if [ -n "$xwd" ]; then + + /usr/bin/xwd -display :0 -root | convert - $session__screenshot + + elif [ -n "$scrot" ]; then run_as_current_user "$scrot $session__screenshot"