On Thursday 28 November 2002 11:28 am, Akhilesh S Shirbhate wrote:
"Error: Can't open Display" What is the problem ??? I want a simple program .. which must be able to exec a xclock on desktop ':0' ... when I run the program from text terminal (tty) logged in as root ! Thanks in advance !!!!
Set environment variable DISPLAY to a proper value in your text terminal. This will solve your problem. The command will be as follows, export DISPLAY=host_ip_where_display_is_needed:0.0
you can use setenv() function to set this value from your c code.
Regards aseem