summaryrefslogtreecommitdiff
path: root/network/vacuum-im/clientinfo.patch
blob: 619f00d7db900e1ab1f4fe555502d2f529921aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: src/plugins/clientinfo/clientinfo.cpp
===================================================================
--- src/plugins/clientinfo/clientinfo.cpp	(revision 1887)
+++ src/plugins/clientinfo/clientinfo.cpp	(working copy)
@@ -2,6 +2,8 @@
 
 #include <QDir>
 #include <QProcess>
+#include <QFile>
+#include <QIODevice>
 #include <QFileInfo>
 #include <QTextStream>
 
@@ -434,8 +436,23 @@
 			}
 		}
 
+// Slackware detect
 		if (osver.isEmpty())
 		{
+			QFile slackwarever("/etc/slackware-version");
+			if (!slackwarever.open(QIODevice::ReadOnly | QIODevice::Text));
+			QTextStream slackin(&slackwarever);
+			while (!slackin.atEnd())
+			{
+				QString slackline = slackin.readLine();
+				QString slackprocess_line(slackline);
+				osver.append(slackprocess_line);
+			}
+			slackwarever.close();
+		}
+
+		if (osver.isEmpty())
+		{
 			utsname buf;
 			if (uname(&buf) != -1)
 			{