Feature #331

avatar

Better OS detection

Added by Mirco Bauer 5406 days ago. Updated 5279 days ago.

Status:Closed Start:02/02/2010
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Engine
Target version:0.7.2
Complexity:

Low

Votes: 0

Description

Currently Smuxi is obtaining the OS information from the C# API and that one has returning Unix for Linux as there is no enum entry for Linux.
Smuxi should call "uname" and use that value and fallback to the C# API if that fails, then we would get much better values. Same goes for the arch.

Associated revisions

Revision a87bef806719e01eb5c00ee76bb110e5984bd73a
Added by Mirco Bauer 5279 days ago

Implemented better OS and architecture detection by using uname with a fallback on the runtime detector. (closes: #331)

History

Updated by Mirco Bauer 5406 days ago

avatar
An example seen with CTCP VERSION:
12:38:21 CTCP VERSION reply from RAOF: Smuxi 0.7.0.0 - running on Unix 64-bit

Updated by Mirco Bauer 5406 days ago

avatar
uname -a samples:
GNU/kFreeBSD lykorias 7.2-1-amd64 #0 Tue Oct  6 23:17:13 UTC 2009 x86_64 amd64 QEMU Virtual CPU version 0.10.0 GNU/kFreeBSD
GNU/kFreeBSD asdfasdf 8.0-1-amd64 #0 Thu Nov 26 04:22:59 CET 2009 x86_64 amd64 AMD Sempron(tm) Processor 3000+ GNU/kFreeBSD

Updated by Mirco Bauer 5406 days ago

avatar
uname -s
Linux
GNU/kFreeBSD
uname -o
Linux
GNU/kFreeBSD

Updated by Mirco Bauer 5279 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF