so os.Getenv("DISPLAY") returns empty string.
Is there a value I can used directly or how can I go about it.
You can also use ":0.0" but that's redundant. Oddly, neither
"localhost:0" or "my.machine.name:0" work, likely due to some X
authentication protocol which I don't feel like investigating.
An interesting question is how you got an empty DISPLAY. You should
probably look into that.
Is there anyone that has used the package successfully? If yes, please
how did you go about it.
/tmp/.X11-unix/X0
I'll go for the mattn-go-gtk. I only wanted to give xgb a try cos its
now official.
I'm using Debian lenny with gdm, which is the cause of problem here.
Gdm dispatches Xserver as
/usr/X11R6/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp v7.
the options -auth and -nolisten make problem for xgb package here, ie.
if you can dispatch Xserver like
/usr/X11R6/bin/X :0 -audit 0,
then you'll get success.
For this to get,
(1) as a super user, /etc/ionit.d/gdm stop☺
(2) login as usual cui console
(3) edit .xserverrc to delete the problematic option, and just lines of
-------
#!/bin/sh
exec /usr/X11R6/bin/X.
--------
Here you'll get xgd working.
However, these are just test purpose procedure, I think.
If you want to delete -nolisten tcp option permanent, you can edit
/usr/share/gdm/°fault.gdm, and change a line
DisallowTCP=true
to
DisallowTCP=false.
However, I don't know how to eliminate or change -auth /var/lib/gdm/:0.Xauth
option from gdm setting.
Anyone knows?
Kenji
I forgot (4)
(4) then startx☺
Kenji
I've read it.
Adding auth mechanism looks good advance to me.
When the changes will be included in the distribution?
I'm reading mails on Plan 9 machine, which has no Go source tree...
Reading diff is not good to me then.☺
Kenji
On Jan 15, 1:23 pm, Kenji Okamoto <okam...@granite.las.osakafu-
u.ac.jp> wrote:
> > I've fixed some bugs in XGB, seehttp://codereview.appspot.com/183111/show.