diff options
author | Luboš Doležel <lubos@dolezel.info> | 2016-07-20 20:24:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 20:24:54 +0200 |
commit | e65364c61775aab6345b8bb9e8f83a53bc7f4a32 (patch) | |
tree | 28200939143b45fab8d2a349b12aac274deee75f /src/gui/main.cpp | |
parent | a1ae5e1863dfad1fe2da9cdf3cfe86e76fbfa92b (diff) | |
parent | 8f405c138616b458e03623e7131a4227442e2720 (diff) | |
download | twinkle-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/gui/main.cpp')
-rw-r--r-- | src/gui/main.cpp | 4 |
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(); |