D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] python -> browser and X problem



Adrian Midgley wrote:

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Error: Can't open display: :0

What obvious thing am I missing?

do I need to alter something with xhosts + or is it a matter of specifying
the displlay differently?

One or the other ":0" is the name for the first local X server,
so most likely this is running as the wrong user and you need to
use xhost to allow it (Unless your doing this on a remote
computer, or Linux terminal server or similar when you may need
something other than ":0").

This is dead common on other *nix, but Linux seems to take care
of it for root, and some of the remote login utilities do a much
better job of setting the display, so you rarely see it on
Linux. Yet another reason the *nix community are getting less
for more money.

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly