Permalink
Browse files

Workaround: recordMyDesktop's -x, -y don't take 0

I definitely call it a bug on recordMyDesktop's side, but even if
recordMyDesktop fixed this bad behavior, in order to support older versions
of it, we'd still have to workaround this.  (Remember when I said hell?)
  • Loading branch information...
1 parent 16dc20b commit 560e59cbc65abaec7104b86bbed4321f08536f47 @lolilolicon committed Oct 7, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 ffcast.bash
View
@@ -383,7 +383,12 @@ case $cast_cmd in
--display="$DISPLAY")
;;
recordmydesktop)
- x11grab_opts=(-display "${DISPLAY}" -x "$_x" -y "$_y" -width "$w" -height "$h")
+ x11grab_opts=(-display "$DISPLAY")
+ # As of recordMyDesktop 0.3.8.1, x- and y-offsets default to 0, but
+ # -x and -y don't accept 0 as an argument. #FAIL
+ (( _x )) && x11grab_opts+=(-x "$_x")
+ (( _y )) && x11grab_opts+=(-y "$_y")
+ x11grab_opts+=(-width "$w" -height "$h")
;;
*)
error "invalid cast command: \`%s'" "$cast_cmd"

0 comments on commit 560e59c

Please sign in to comment.