Cannot open display on server

View: New views
3 Messages — Rating Filter:   Alert me  

Cannot open display on server

by Kasper Johansen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi group.

I am writing a server/client-application, which does not use any kind of
Gtk-windows or anything like that.

However I am using the gtk-lib to handel events from sockets and stuff
like that. The application is working, but I am unable to use it on a
server with no X-server installed.

Is there any way to keep the gtk-lib from crashing the whole application
when trying to load it from a shell? Like making this crashing error
into a non-crashing notice or something and still be able to use the
Gtk-events from sockets? As said before, I dont use any windows or
widgets anyway.


--
Regards
Kasper Johansen

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Cannot open display on server

by Christian Weiske :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Kasper,


> I am writing a server/client-application, which does not use any kind
> of Gtk-windows or anything like that.
>
> However I am using the gtk-lib to handel events from sockets and
> stuff like that. The application is working, but I am unable to use
> it on a server with no X-server installed.

As soon as you use the php-gtk extension, the underlying classes try to
connect to the X server. There is nothing we can do about this.

Short: no php-gtk on x-less environments.



--
Regards/Mit freundlichen Grüßen
Christian Weiske


signature.asc (204 bytes) Download Attachment

Re: Cannot open display on server

by Malk0 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you may have a look at xvfb but you will certainly need to give the
correct rights to the user that execute the script (probably apache or
nobody i gess)
hope this help,

best regards,

nathan

On Mon, Jun 16, 2008 at 10:58 AM, Christian Weiske <cweiske@...> wrote:

> Hello Kasper,
>
>
>> I am writing a server/client-application, which does not use any kind
>> of Gtk-windows or anything like that.
>>
>> However I am using the gtk-lib to handel events from sockets and
>> stuff like that. The application is working, but I am unable to use
>> it on a server with no X-server installed.
>
> As soon as you use the php-gtk extension, the underlying classes try to
> connect to the X server. There is nothing we can do about this.
>
> Short: no php-gtk on x-less environments.
>
>
>
> --
> Regards/Mit freundlichen Grüßen
> Christian Weiske
>



--
-- le savoir ne vaut que s'il est partagé par tous --

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php