diff options
author | Oleg A. Deordiev <admin@ifconfig.com.ua> | 2012-12-14 06:19:14 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-15 15:13:34 +0100 |
commit | 18c5c1bccdd528e3ad75a64cac36645fba7ca5ba (patch) | |
tree | 207b78b08ce71cd8f9cb105321f6c6b901155a37 /network/vacuum-im/clientinfo.patch | |
parent | 2d7b0cdeb69bb926db1c8503e664b7bc9e587121 (diff) | |
download | slackbuilds-18c5c1bccdd528e3ad75a64cac36645fba7ca5ba.tar.gz |
network/vacuum-im: Added (Qt jabber client).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/vacuum-im/clientinfo.patch')
-rw-r--r-- | network/vacuum-im/clientinfo.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/network/vacuum-im/clientinfo.patch b/network/vacuum-im/clientinfo.patch new file mode 100644 index 0000000000..619f00d7db --- /dev/null +++ b/network/vacuum-im/clientinfo.patch @@ -0,0 +1,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)
+ {
|