summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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();