Commit Graph

41 Commits

Author SHA1 Message Date
Maxwell Cody
fef7252d1c OSInfo: Documented Solaris uname() fix. 2017-03-16 10:08:08 -05:00
Maxwell Cody
41e06528ed Fixed uname() query on Solaris. 2017-03-15 09:51:58 -05:00
Davide Beatrici
625d1ceef5 OSInfo.cpp: Fix MinGW compilation warnings
../OSInfo.cpp:74:113: warning: passing NULL to non-pointer argument 3 of 'LONG RegOpenKeyExW(HKEY, LPCWSTR, DWORD, REGSAM, PHKEY)' [-Wconversion-null]
  err = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", NULL, KEY_READ, &key);
                                                                                                                 ^
../OSInfo.cpp: In static member function 'static QString OSInfo::getOSVersion()':
../OSInfo.cpp:197:135: warning: format '%d' expects argument of type 'int', but argument 3 has type 'DWORD {aka long unsigned int}' [-Wformat=]
  os.sprintf("%d.%d.%d.%d", ovi.dwMajorVersion, ovi.dwMinorVersion, ovi.dwBuildNumber, (ovi.wProductType == VER_NT_WORKSTATION) ? 1 : 0);
                                                                                                                                       ^
../OSInfo.cpp:197:135: warning: format '%d' expects argument of type 'int', but argument 4 has type 'DWORD {aka long unsigned int}' [-Wformat=]
../OSInfo.cpp:197:135: warning: format '%d' expects argument of type 'int', but argument 5 has type 'DWORD {aka long unsigned int}' [-Wformat=]
../OSInfo.cpp: In static member function 'static QString OSInfo::getOSDisplayableVersion()':
../OSInfo.cpp:466:86: warning: format '%d' expects argument of type 'int', but argument 3 has type 'DWORD {aka long unsigned int}' [-Wformat=]
  osv.sprintf(" - %d.%d.%d", ovi.dwMajorVersion, ovi.dwMinorVersion, ovi.dwBuildNumber);
                                                                                      ^
../OSInfo.cpp:466:86: warning: format '%d' expects argument of type 'int', but argument 4 has type 'DWORD {aka long unsigned int}' [-Wformat=]
../OSInfo.cpp:466:86: warning: format '%d' expects argument of type 'int', but argument 5 has type 'DWORD {aka long unsigned int}' [-Wformat=]
2017-02-03 16:35:45 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Mikkel Krautz
d7ac6f747d OSInfo: fix implicit size_t conversion. 2016-08-24 23:52:04 +02:00
Mikkel Krautz
2df5f2f77b OSInfo: fix new Windows 10 OSInfo to not include NUL values in the displayable version string.
These strings from the registry are NUL terminated, but in practice, this
isn't guaranteed.

This means that the displayable version string for Windows 10 currently
contains NUL values.

The Mumble client doesn't care, but it isn't very nice. It breaks things
like CVP providers that don't sanitize Murmur's output.

To fix the problem, this change introduces a regString function that
converts a wchar_t string to QString. Any NUL value in the input
string will terminate the string.

Fixes mumble-voip/mumble#2469
2016-08-06 17:34:41 +02:00
Mikkel Krautz
88e664710d OSInfo: add Windows 10 displayable version string.
Fixes mumble-voip/mumble#1916
2016-07-20 23:37:08 +02:00
Mikkel Krautz
395c084b7a src: update to use LICENSE.header. 2016-05-10 22:42:02 +02:00
Mikkel Krautz
0502fa67b0 Drop OS X specific '64-bit' check.
QSysInfo::WordSize == 64 seems good enough for us.
2016-04-17 23:00:09 +02:00
Mikkel Krautz
72ef9026fa Add build number to OS X OSInfo.
This change also removes the architecture
from the OSInfo string, since it is noisy.

The old code would always emit "i386", seemingly
since that's the "lowest" fatch arch that the current
OS X x86_64 kernels will run binaries from.

I tried to update the code, but instead of x86_64, I
got "x86_64h", which is Apple's arch string for
Haswell chips.

I don't think it makes sense anymore to have the
architecture string in the OSInfo on OS X. All
Macs running the modern OSes are x86_64 anyway.

Fixes mumble-voip/mumble#1341
2016-04-17 22:59:52 +02:00
Mikkel Krautz
9dba18fcca OSInfo: fix OS X version string formatting build error.
Cast the version components to unsigned long and print
them as %lu.
2015-11-15 19:21:04 +01:00
Joël Troch
122ed92620 OSInfo: update Windows 10 detection due to kernel version change. 2015-03-18 19:39:38 +01:00
Joël Troch
236e987482 Added Windows 10 in OS detection and manifest file.
The official name for the server version of Windows 10
is "Windows 10 Server Technical Preview" but since
"Technical Preview" is a detail, I haven't included it.

Closes #1435
2014-10-30 22:15:41 +01:00
Mikkel Krautz
6d962818a2 OSInfo: use 'WinX64' as the OS identifier for Windows/amd64 builds.
The OS string from OSInfo is used in places such as log files, and
in the Server Info and User Info dialogs.

I think it'll be beneficial in the long run to be able to
distinguish an x86 build from an amd64 on in these places.

Technically, the full OSInfo dump has an is64bit flag, but it's not
visible in the aforementioned places - only the OS string is. The
isb64bit flag is only used when submitting usage stats.
2014-07-15 23:30:57 +02:00
Mikkel Krautz
1d0b1c86d4 OSInfo: fix display of Windows service packs in getOSDisplayableVersion.
I botched this when I did a few fix-ups while merging.
2014-01-11 11:39:39 +01:00
Zuko
8f0ae691cc OSInfo: use full Windows version when version string is user-facing.
This adds a new method, OSInfo::getOSDisplayableVersion(),
which returns a version string that is suitable for displaying
to regular users.

Furthermore, Mumble's User Information dialog and Murmur have been
modified to use this new method when displaying OS version strings
to users.

On Windows, the new method returns the full product version of the
OS, such as "Windows 8 Pro" (as opposed to 6.2.9200, which is the
equivalent result of the getOSVersion() method).

There are places in Mumble where the original "simple" version
string is required for compatibility or aesthetic reasons, such
as statistics and Mumble's HTTP user agent. Those places keep
the older version (by keeping their calls to the original
getOSVersion() instead of switching to the "displayable" variant).

It might seem overkill to jump through hoops to be able to show the
full product version, but it can be helpful for, say, server admins
to have access to the full product version if they need to
troubleshoot issues with their users.
2014-01-11 03:11:19 +01:00
Stefan Hacker
2c892feecf Fix various compiler warnings with VS2010 2013-10-23 19:32:07 +02:00
Mikkel Krautz
5cb337049b mumble, murmur: Qt 5 support for Linux. 2013-06-29 16:56:41 +02:00
Benjamin Jemlich
07737a314c Fix include guards and PCH includes 2011-11-09 00:12:10 +01:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Benjamin Jemlich
079f1ad219 Remove local variable in getOSVersion 2010-12-04 20:02:57 +01:00
Mikkel Krautz
f1a0740459 Report bIs64 for OSX. The arch info stuff returns the arch of the kernel, which is almost always i386. 2010-08-30 10:39:41 +02:00
Stefan Hacker
cb8ddcf0d2 Fix compile errors 2010-08-21 18:06:39 +02:00
Thorvald Natvig
39b5228ce3 Indent, changelog, submodule and language update 2010-08-17 22:28:56 +02:00
Thorvald Natvig
f6a3e82cc7 Add cpu type and SSE2 state to usage stats 2010-08-17 22:16:46 +02:00
Thorvald Natvig
1c79299230 Indent, changelog, submodule and language update 2010-02-23 16:16:44 +01:00
Thorvald Natvig
58cbf0ec8f Hopefully fix a compilebug I introduced on OSX 2010-02-11 16:05:37 +01:00
Thorvald Natvig
91cf6c76ad Pipeline http fetch and set user-agent 2010-02-11 15:26:48 +01:00
Thorvald Natvig
16339bfc91 Update license to 2010 2010-01-05 08:49:22 +01:00
Thorvald Natvig
3976433cc7 Multibind for nix 2009-06-22 20:01:44 +02:00
Mikkel Krautz
dbb0eb26cd Fix header mess on Mac OS X. 2009-03-13 13:02:17 +01:00
Thorvald Natvig
e68d92085c Be kinder to systems without working lsb_release
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1530 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-02-14 01:10:00 +00:00
Thorvald Natvig
a0c96713dc Indenting fixes
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1482 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-28 17:51:09 +00:00
Thorvald Natvig
9ccba72bee More consistently pick the same interface
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1470 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-22 22:17:18 +00:00
Thorvald Natvig
386a8f2067 If we don't find an active IPv4 interface, pick any other
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1469 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-22 22:09:38 +00:00
Thorvald Natvig
d0bd009c41 Strip " from lsb_release
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1461 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-20 01:13:10 +00:00
Thorvald Natvig
e3f271b553 Indenting update
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1458 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-19 23:09:19 +00:00
Thorvald Natvig
dfecfd3a43 Use just parts of uname() for OS info
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1457 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-19 19:49:57 +00:00
Mikkel Krautz
1fd2ae4122 Prettify OSX OSInfo and include architecture.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1424 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-13 00:36:12 +00:00
Thorvald Natvig
b13cd6a368 Report true Windows version.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1412 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-12 00:04:09 +00:00
Thorvald Natvig
949a8c284f Make canEcho const, unify XML for OS info and don't start UDP thread if the socket failed
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1411 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-11 23:55:16 +00:00