summaryrefslogtreecommitdiff
path: root/devel/universalindentgui/files/patch-src_UiGuiSystemInfo.cpp
blob: 08c189eddb8665514648b75f57da9e05ea375e79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/UiGuiSystemInfo.cpp.orig	2012-01-01 17:51:34.000000000 +0100
+++ src/UiGuiSystemInfo.cpp	2013-02-17 15:22:00.000000000 +0100
@@ -154,6 +154,17 @@
 
         operatingSystemString = os + "oslevel " + oslevel;
     }
+     else if ( os == "FreeBSD" ) {
+         process.start("uname -n");
+         result = process.waitForFinished(1000);
+         QString name = process.readAllStandardOutput().trimmed();
+ 
+         process.start("uname -v");
+         result = process.waitForFinished(1000);
+         QString oslevel = process.readAllStandardOutput().trimmed();
+ 
+         operatingSystemString = os + " " + name + " " + rev + " " + oslevel + " " + mach;
+    }
     else if ( os == "Linux" ) {
         QString dist;
         QString pseudoname;