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

Linux specific forum
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

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

Post 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