RubyX11 - how to make it work?

  • Thread starter Michal Suchanek
  • Start date
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::Display.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top