I am trying to run a tool (custom application) built with the GTK library from the command line. It works fine within X, but if I run it from cron, at, or ssh without X then I get this error:
Gtk-WARNING **: cannot open display: Obviously GTK is trying to open the display, even though the app has a command line option to run from a command prompt, and doesn't use the display when that option is used. Other than modifying and recompiling the app to have it not check for a display, do you know of any workarounds to fool the environment into thinking is has what it needs? I tried things such as: DISPLAY=:0.0 XAUTHORITY=/home/someuser/.Xauthority /***************************************** Scott McClelland, B.S. CIS, CNE, MCSE, RHCT, HP APS Qualcomm MediaFLO Technologies *****************************************/ -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
