On Mon, Mar 31, 2008 at 10:59 AM, McClelland, Scott <[EMAIL PROTECTED]> wrote:
> 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
>
>

Find, install, and use the X virtual frame buffer "xvfb".  It seems to
have been designed for things like this.

    carl
-- 
 carl lowenstein marine physical lab u.c. san diego
 [EMAIL PROTECTED]


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to