From 8f405c138616b458e03623e7131a4227442e2720 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 20 Jul 2016 20:10:41 +0200 Subject: Set PULSE_PROP_media.role=phone environment variable to pause music playback during conversations --- src/gui/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 +#include #ifdef HAVE_KDE #include @@ -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(); -- cgit v1.2.3