M
Michal Suchanek
Hello
I tried RubyX11. As seen in some sort of example code I tried to
create an instance of Display first.
However, I get a message about invalid cookie.
0.5 and 0.6pre1 give the same result.
$ irb -I. -r X11/Display
irb(main):001:0> X11:isplay.new
auth_proto_data:"\321\020\e\234j\364z\0327{^\371PO\323V"
RuntimeError: Connection to server failed (version 11.0 -- Invalid
MIT-MAGIC-COOKIE-1 key
from ./X11/Display.rb:261:in `authorization'
from ./X11/Display.rb:235:in `connect_to'
from ./X11/Display.rb:196:in `initialize'
from (irb):1:in `new'
from (irb):1
irb(main):002:0> `xauth extract - $DISPLAY`
=> "\001\000\000\aheretic\000\0010\000\022MIT-MAGIC-COOKIE-1\000\020f\231N\260\277ve=\267t\235t\016k\237H"
irb(main):003:0>
Anything I am doing wrong?
Thanks
Michal
I tried RubyX11. As seen in some sort of example code I tried to
create an instance of Display first.
However, I get a message about invalid cookie.
0.5 and 0.6pre1 give the same result.
$ irb -I. -r X11/Display
irb(main):001:0> X11:isplay.new
auth_proto_data:"\321\020\e\234j\364z\0327{^\371PO\323V"
RuntimeError: Connection to server failed (version 11.0 -- Invalid
MIT-MAGIC-COOKIE-1 key
from ./X11/Display.rb:261:in `authorization'
from ./X11/Display.rb:235:in `connect_to'
from ./X11/Display.rb:196:in `initialize'
from (irb):1:in `new'
from (irb):1
irb(main):002:0> `xauth extract - $DISPLAY`
=> "\001\000\000\aheretic\000\0010\000\022MIT-MAGIC-COOKIE-1\000\020f\231N\260\277ve=\267t\235t\016k\237H"
irb(main):003:0>
Anything I am doing wrong?
Thanks
Michal