blob: e0e5a92ce25d01c0b21916ca01f2509f20e378ca (
plain) (
blame)
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
38
39
|
Index: kcontrol/arts/arts.cpp
===================================================================
RCS file: /home/kde/kdebase/kcontrol/arts/arts.cpp,v
retrieving revision 1.100
diff -u -3 -p -r1.100 arts.cpp
--- kcontrol/arts/arts.cpp 8 Nov 2003 23:43:47 -0000 1.100
+++ kcontrol/arts/arts.cpp 29 Jan 2004 11:59:29 -0000
@@ -51,6 +51,7 @@
//#include <kparts/componentfactory.h>
//#include "midi.h"
#include "arts.h"
+#include <arts/artsversion.h>
extern "C" {
void init_arts();
@@ -601,7 +602,11 @@ void init_arts()
config->setGroup("Arts");
bool startServer = config->readBoolEntry("StartServer",true);
bool startRealtime = config->readBoolEntry("StartRealtime",true);
+#if ARTS_MAJOR_VERSION >= 1 && ARTS_MINOR_VERSION >= 2
QString args = config->readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -c drkonqi -l 3 -f");
+#else
+ QString args = config->readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -l 3 -f");
+#endif
delete config;
@@ -652,7 +657,11 @@ QString KArtsModule::createArgs(bool net
args += QChar(' ') + addOptions;
args += QString::fromLatin1(" -m artsmessage");
+
+#if ARTS_MAJOR_VERSION >= 1 && ARTS_MINOR_VERSION >= 2
args += QString::fromLatin1(" -c drkonqi");
+#endif
+
args += QString::fromLatin1(" -l 3");
args += QString::fromLatin1(" -f");
|