Hi everyone. How can i set the xdisplay id within a running pygtk application to a different display?
I am working on a jobmanagement system which should be able to handle gui applications correctly. In order to achive this I am starting a VNC-server with a certain display id and authority file containing the MIT-MAGIC-COOKIE. Now I want to start a new application with its stdout and stderr redirected into Textviews which are part of a notebook in a gtk.Window. This window should of course pop up in the VNC-Servers display not on my local one. My current way to inform every piece of code in my software is to set the DISPLAY and XAUTHORITY environment variables within my worker application as early as possible (before instantiating the Window), which works well for the forked application to execute, but not for the gtk.Window always showing up on my local display. >From reading the documentation, FAQ and mailing list archive I learned that a >solution might be based on gtk.gdk.Display pointing to the right direction. >Any try to change the default_display however failed. And I'm not aware of how >the cookie would be handled in such cases? I'm working on openSuSE 10.2 and 11.0 systems using pygtk 2.10 and 2.12 respectively. Best regards Jens
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
