summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 17:08:18 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 17:08:18 +0200
commit4e88f3243421367f15e450f6bf166d7bcdc7648d (patch)
tree04477d823838c69a74bdfc7d1c345cacbdd20ae3
parentd8e5a4996f17d560fe8383efe72fe0ee774a86ec (diff)
Check for pulse audio at startup.
-rw-r--r--src/simplertp.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simplertp.cc b/src/simplertp.cc
index 7a56fb3..ef71192 100644
--- a/src/simplertp.cc
+++ b/src/simplertp.cc
@@ -27,11 +27,18 @@
#include <QApplication>
#include <QSettings>
+#include <stdlib.h>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
+ int pulse = system("pidof pulseaudio &> /dev/null");
+ if(pulse == 0) {
+ printf("Pulse audio is running - simplertp wont work...\n");
+ return 1;
+ }
+
QApplication app(argc, argv);
if(argc < 2) {