summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuboš Doležel <lubos@dolezel.info>2016-07-20 20:24:54 +0200
committerGitHub <noreply@github.com>2016-07-20 20:24:54 +0200
commite65364c61775aab6345b8bb9e8f83a53bc7f4a32 (patch)
tree28200939143b45fab8d2a349b12aac274deee75f /src
parenta1ae5e1863dfad1fe2da9cdf3cfe86e76fbfa92b (diff)
parent8f405c138616b458e03623e7131a4227442e2720 (diff)
downloadtwinkle-e65364c61775aab6345b8bb9e8f83a53bc7f4a32.tar
twinkle-e65364c61775aab6345b8bb9e8f83a53bc7f4a32.tar.gz
twinkle-e65364c61775aab6345b8bb9e8f83a53bc7f4a32.tar.lz
twinkle-e65364c61775aab6345b8bb9e8f83a53bc7f4a32.tar.xz
twinkle-e65364c61775aab6345b8bb9e8f83a53bc7f4a32.zip
Merge pull request #72 from manisandro/pa_role
Set PULSE_PROP_media.role=phone environment variable to pause music playback during conversations
Diffstat (limited to 'src')
-rw-r--r--src/gui/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index c066b47..6c64185 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -18,6 +18,7 @@
#include "twinkle_config.h"
#include <QtDebug>
+#include <QtGlobal>
#ifdef HAVE_KDE
#include <kapplication.h>
@@ -597,6 +598,9 @@ int main( int argc, char ** argv )
QApplication *qa = NULL;
QTranslator *appTranslator = NULL;
QTranslator *qtTranslator = NULL;
+
+ // Set phone role
+ qputenv("PULSE_PROP_media.role", "phone");
// Store id of main thread
thread_id_main = t_thread::self();