Skip Menu |
 

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 41716
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: skasal [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Do not connect to display upon "use Wx"
Download (untitled) / with headers
text/plain 678b
Hello, I'm using the following common idiom to find out the version of module Wx: perl -MWx -e 'print "$Wx::VERSION\n"' The -MWx or "use Wx" initializes libgtk, including an attempt to connect to the display. This can generate an error when working on terminal without graphical display available (or in a headless build environment). Or, when $DISPLAY points to a display behind a slow connection, the above command can take some time. I think that the full initialization of libgtk and connecting to the display should be delayed, so that the above simple example does not include the potentially expensive attempt to connect to the display. Yours, Stepan Kasal
Subject: Wx::wxVERSION_STRING() does not work if no display is available
Download (untitled) / with headers
text/plain 429b
Hello, I'm trying to find out the version of the wxWidget library which is the installed Wx module built against: perl -MWx 'print Wx::wxVERSION_STRING()."\n"' But this attempts to connect to the display, and if this attempt fails, wxVERSION_STRING() does not return the version info. I believe that the version of the underlaying library should be accessible even when no display is available. Thanks, Stepan Kasal
Download (untitled) / with headers
text/plain 324b
On Mon Dec 15 08:13:06 2008, kasal wrote: Show quoted text
> I believe that the version of the underlaying library should be > accessible even when no display is available.
I agree, it's just not easy to change without breaking backward compatibility; I'm working on some changes that should solve this as a side effect. Regards, Mattia
Download (untitled) / with headers
text/plain 324b
On Mon Dec 15 08:13:06 2008, kasal wrote: Show quoted text
> I believe that the version of the underlaying library should be > accessible even when no display is available.
I agree, it's just not easy to change without breaking backward compatibility; I'm working on some changes that should solve this as a side effect. Regards, Mattia


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.