Can GTK be used without a valid X display?
I want to use GTK with Webkit, but for now I'm only interested in using the DOM functions for experimentation, so I don't need to display anything. It is very convenient for me to do this through an SSH connection on a server on which there is no mapping.
But, without the DISPLAY
environment variable, gtk_init()
just fails with the message:
Gtk-WARNING **: cannot open display:
Can I use GTK without a display?
source share