summaryrefslogtreecommitdiffstats
path: root/opensuse/arts/arts-start-on-demand.diff
blob: 032231c16f647fa3c7ed6f126eb534276f279463 (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
Index: mcop/objectmanager.cc
===================================================================
--- mcop/objectmanager.cc.orig
+++ mcop/objectmanager.cc
@@ -28,6 +28,7 @@
 #include "extensionloader.h"
 #include "debug.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <iostream>
 
@@ -267,6 +268,12 @@ bool ObjectManager::addGlobalReference(O
 
 string ObjectManager::getGlobalReference(const string& name)
 {
+	static bool started_arts = false;
+	if (!started_arts)
+	{
+		system("arts-start");
+		started_arts = true;
+	}
 	return Dispatcher::the()->globalComm().get(name);
 }