[Fxruby-users] How can I tell if there is no display available?
Status: Inactive
Brought to you by:
lyle
From: Ashley R. <Ash...@co...> - 2004-06-14 02:25:55
|
Hi all, I'm writing an application using Ruby that has both a text interface and a GUI (using FXRuby). Can anyone tell me how to know at runtime if there is no display to use. It seems that when I call FXApp.new(), control never returns to my code. An error message is printed to the console, and the program exits. Here's the error message. It's not even an exception. FXRbApp::openDisplay: unable to open display :10 If there is no display available, I want to switch to my text interface. Thanks, Ashley |