Kirix Support Forums

Is there a way to query XULRunner's version number?

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

Is there a way to query XULRunner's version number?

Postby bpaddock on Sun Jul 12, 2009 8:50 am

Is there a way to query XULRunner's version number?
Say get back a wxString like "1.9.0.11"?
I did not find, or over looked it, in the wxWebConnect documentation.

There needs to be a way to do this so that we can check for
updates of XULRunner in case there are security issues found
in it.

Which leads to the question is there some simple text file, XML file,
or web page that can be queried when there is a new XULRunner release?
bpaddock
Registered User
 
Posts: 2
Joined: Sun Jul 12, 2009 8:19 am

Re: Is there a way to query XULRunner's version number?

Postby peterl on Mon Jul 20, 2009 8:00 am

Once you found the XULRunner binary directory:

wxArrayString output;

long res = ::wxExecute(xulr_dir + "\\xulrunner.exe --gre-version", output/*&*/, wxEXEC_SYNC);
if ((res != 0) || (output.size() != 1))
{
wxLogMessage("ERROR - XULRunner version couldn't be determined");
}
else wxLogMessage("Current XULRunner version is %s", output[0]);

There are much newer versions of XULRunner available but they won't be compatible with wxWebConnect nor some ns_ plugins that you currently use.

cheers,

-- p
peterl
Registered User
 
Posts: 5
Joined: Sat Jul 11, 2009 2:08 pm

Re: Is there a way to query XULRunner's version number?

Postby jonmmorgan on Wed Nov 03, 2010 9:15 am

I find on Windows that xulrunner --gre-version returns nothing at all, and that xulrunner --version will pop up an alert message giving you the version number and the build ID. However, it is possible to read the value from an INI file, platform.ini, in the XULRunner binary directory (from my digging in the XULRunner code, that seems to be how XULRunner itself finds the version number, so it must be OK). My XULRunner 1.9.2 ini file has the following:
Code: Select all
[Build]
BuildID=20100222071121
Milestone=1.9.2
SourceStamp=448d0d2d310c
SourceRepository=http://hg.mozilla.org/releases/mozilla-1.9.2


It would be possible to make this a generic method to use in wxWebConnect, but in the end I will probably give up trying and use the Python config parser instead.
jonmmorgan
Registered User
 
Posts: 94
Joined: Fri May 14, 2010 9:48 am

Return to wxWebConnect Questions, Thoughts & Feedback