File session_functions.patch of Package prey

--- modules/session/platform/linux/functions	2010-08-30 19:00:54.000000000 -0500
+++ modules/session/platform/linux/functions.orig	2010-09-08 16:15:11.000000000 -0500
@@ -7,10 +7,14 @@
 
 get_screenshot() {
 
+	local xwd=`which xwd`
 	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"
 
openSUSE Build Service is sponsored by