[Project_owners] Getting OS and CPU type via XPInstall...

Roland Mainz roland.mainz at nrubsig.org
Mon Feb 9 01:08:59 EST 2004


Hi!

----

Another problem I hit today while working on my XPI install script:
How can I get the OS and the CPU type of the current Mozilla/GRE/MRE
etc. ?

For example:
On Unix/Linux I can do this:
* Solaris/SPARC:
% uname -s
SunOS
% uname -p
sparc

* Linux/x86:
% uname -s
Linux
% uname -p
unknown
% uname -m
i686

Does anyone know a way to obtain the same type of information from an
XPInstall script ? I'd like to add a check that people cannot install
the XPI on a mozilla which cannot execute that type of binaries...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)


More information about the Project_owners mailing list