Page 1 of 1

[solved] Dameon not starting: Gtk-WARNING **: cannot open di

Posted: Wed Apr 16, 2008 10:41 am
by Kukulkan
Hi,

I made a linux daemon using PB 4.10 on linux. The program is compiled using the "threadsafe" option and the executable-format is "console".

If I start the application normally, everything runs fine. If I try to start this application using a runlevel script (rc2.d with init.d), the application produces this error: Gtk-WARNING **: cannot open display:

I don't use any window, menu or GUI elements. I don't use MessageRequester() or similary functions. Only logfiles.

Any idea how to start the application without GTK desktop running?

[solved] There has been a MessageRequester() call in one of the includes. After removing this one, the application works like a charm...

Kukulkan