Make version info work without lsb-release installed
This commit is contained in:
parent
23476683f6
commit
8351c8923a
|
@ -175,12 +175,20 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
|
||||||
|
|
||||||
aMsg << eol;
|
aMsg << eol;
|
||||||
|
|
||||||
aMsg << "Platform: "
|
wxString osDescription;
|
||||||
|
|
||||||
#if __LINUX__
|
#if __LINUX__
|
||||||
<< wxGetLinuxDistributionInfo().Description << ", "
|
osDescription = wxGetLinuxDistributionInfo().Description;
|
||||||
#else
|
|
||||||
<< wxGetOsDescription() << ", "
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Linux uses the lsb-release program to get the description of the OS, if lsb-release
|
||||||
|
// isn't installed, then the string will be empty and we fallback to the method used on
|
||||||
|
// the other platforms (to at least get the kernel/uname info).
|
||||||
|
if( osDescription.empty() )
|
||||||
|
osDescription = wxGetOsDescription();
|
||||||
|
|
||||||
|
aMsg << "Platform: "
|
||||||
|
<< osDescription << ", "
|
||||||
<< GetPlatformGetBitnessName() << ", "
|
<< GetPlatformGetBitnessName() << ", "
|
||||||
<< platform.GetEndiannessName() << ", "
|
<< platform.GetEndiannessName() << ", "
|
||||||
<< platform.GetPortIdName();
|
<< platform.GetPortIdName();
|
||||||
|
|
Loading…
Reference in New Issue