mkcast
mkcast copied to clipboard
xdpyinfo and byzans-record errors on Ubuntu 14.04
Get an error when running this on Ubuntu 14.04.
$ newcast
xdpyinfo: unable to open display "".
/usr/local/google/home/ruslano/bin/mkcast: line 52: wmctrl: command not found
/usr/local/google/home/ruslano/bin/mkcast: line 54: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/google/home/ruslano/bin/mkcast: line 55: -: syntax error: operand expected (error token is "-")
/usr/local/google/home/ruslano/bin/mkcast: line 56: wmctrl: command not found
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
byzanz-record --help
Error persists after installing missing wmctrl
:
$ newcast
xdpyinfo: unable to open display "".
Cannot open display.
/usr/local/google/home/ruslano/bin/mkcast: line 54: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/google/home/ruslano/bin/mkcast: line 55: -: syntax error: operand expected (error token is "-")
Cannot open display.
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
byzanz-record --help
I use Tmux from within Terminator, if that has any value.
This indicates that the $wx
is empty. To confirm, you might try to type
$ wmctrl -l
It seems extremely likely to me that you will get an error about now receiving window properties. To fix, you would either need to find a different way of getting the dimensions of your window, or hardcode the byzanz-record call in mkcast.
True, it returns Cannot open display.
. The issue seem to be specific to terminator - it works in default gnome terminal. Would be nice to expand support to terminator.
Same issue for xfce4-terminal 0.6.3
Same issue on Mac OS X 10.10 and Fish terminal.
➜ ~ cd mkcast
➜ mkcast git:(master) ✗ newcast
/usr/local/bin/mkcast: line 55: xdpyinfo: command not found
/usr/local/bin/mkcast: line 57: wmctrl: command not found
/usr/local/bin/mkcast: line 59: /2-/2: syntax error: operand expected (error token is "/2-/2")
/usr/local/bin/mkcast: line 60: -: syntax error: operand expected (error token is "-")
/usr/local/bin/mkcast: line 61: wmctrl: command not found
readlink: illegal option -- f
usage: readlink [-n] [file ...]
➜ mkcast git:(master) ✗ kill: 6082: No such process
same issue on arch linux with urxvt 256 colors, xterm, and gnome-terminal