Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion session/platform/linux/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down