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"