| Store | Cart

Re: [TCLCORE] Patch: fix bug in Tk where X11 displays whose names contain "::" couldn't be used (plain text this time)

From: Tristan Schmelcher <tris...@gmail.com>
Mon, 07 Dec 2009 09:14:51 +0100
Sure. It is the display name that my XVnc server automatically used. My
set-up is as follows. The machine has one real X server for a physical
display and then also runs XVnc for remote connections. XVnc is launched
from xinetd with this config file in /etc/xinetd.d/Xvnc:

service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -geometry 1024x768 -depth 24
-securitytypes=none -DisconnectClients=0 -NeverShared -extension XFIXES
port = 5901
}

This config makes XVnc run the GDM greeter, making it behave more or
less like a Windows RDP server. You may need to enable XDMCP for it to
work.

At the time, another user was logged-in on the physical X display and I
logged in over XVnc. Inside the GNOME session launched from within XVnc,
DISPLAY is set to ::1:1.0.

My OS is Ubuntu Karmic (9.10) 64-bit.

On Sun, 2009-12-06 at 23:18 -0800, Technical Support (Brian G) wrote:
> Hi Tristan,> > Thanks for reporting, and resolving, this issue.  I'd like to confirm > the fix for inclusion in the next ModelSim release, and to help the Tcl > Core team as well.  Can you describe how this DISPLAY name was > generated.  I have not been successful in recreating this condition.> > Thanks,> -Brian> > Tristan Schmelcher wrote:> > Hello,> >> > I recently discovered a bug in Tk with X11 display strings. If the> > display string contains "::" then Tk cannot load, because it uses the> > display name as a variable name and this produces an error about the> > parent namespace not being defined. This happened to me when trying to> > use a Tk app (Mentor Graphics ModelSim) over XVnc, where the display> > string was "::1:1.0". At least one other person has reported the same> > problem: http://ubuntu-ky.ubuntuforums.org/showthread.php?p=8255492.> > (That post suggests that this has only recently become a problem,> > probably because until now display names never contained "::".)> >> > I have attached a patch that fixes the bug. I have verified that it> > works in Tk 8.4, though for your convenience I have generated the patch> > against Tk 8.5. Please consider incorporating it.> >> > Thanks!> >> > (Sorry about the HTML email before ...)> >   > > ------------------------------------------------------------------------> >> > ------------------------------------------------------------------------------> > Join us December 9, 2009 for the Red Hat Virtual Experience,> > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere.> > http://p.sf.net/sfu/redhat-sfdev2dev> > ------------------------------------------------------------------------> >> > _______________________________________________> > Tcl-Core mailing list> > Tcl-...@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/tcl-core


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
Tristan Schmelcher Dec 06, 2009 06:58 pm
Jan Nijtmans Dec 07, 2009 10:18 am
Tristan Schmelcher Dec 07, 2009 01:14 pm
Tristan Schmelcher Dec 11, 2009 05:54 am
Brian Griffin Dec 11, 2009 06:49 am
Donal K. Fellows Dec 11, 2009 11:28 am
Griffin, Brian Dec 11, 2009 02:07 pm
Tristan Schmelcher Dec 07, 2009 08:14 am
Messages in this thread