mkcast icon indicating copy to clipboard operation
mkcast copied to clipboard

xdpyinfo and byzans-record errors on Ubuntu 14.04

Open ruslanosipov opened this issue 10 years ago • 5 comments

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.

ruslanosipov avatar Feb 02 '15 17:02 ruslanosipov

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.

davidlowryduda avatar Feb 02 '15 22:02 davidlowryduda

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.

ruslanosipov avatar Feb 03 '15 00:02 ruslanosipov

Same issue for xfce4-terminal 0.6.3

Aetet avatar Feb 03 '15 15:02 Aetet

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

sahat avatar Feb 03 '15 18:02 sahat

same issue on arch linux with urxvt 256 colors, xterm, and gnome-terminal

jghibiki avatar Apr 09 '15 18:04 jghibiki