From 68f5bf86bcab7c75ac9c7792e22619b62e5ec244 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 30 Aug 2019 11:07:52 +0000 Subject: [PATCH] daemon: Drop KDE-specific loading of module-device-manager Newer versions of Plasma no longer use this module, and the consensus seems to be that module-switch-on-connect works better for most cases. Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/509 --- src/daemon/start-pulseaudio-x11.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daemon/start-pulseaudio-x11.in b/src/daemon/start-pulseaudio-x11.in index 16e46b1ca..1b5f429c9 100755 --- a/src/daemon/start-pulseaudio-x11.in +++ b/src/daemon/start-pulseaudio-x11.in @@ -23,7 +23,10 @@ if [ x"$DISPLAY" != x ] ; then @PACTL_BINARY@ load-module module-x11-cork-request "display=$DISPLAY" > /dev/null if [ x"$KDE_FULL_SESSION" = x"true" ]; then - @PACTL_BINARY@ load-module module-device-manager "do_routing=1" > /dev/null + plasmaversion=`grep "X-KDE-PluginInfo-Version" $DESKTOP_SESSION.desktop | cut -d "=" -f2 | cut -d "." -f1,2 | tr -d "."` + if [ "$plasmaversion" -lt "517" ]; then + @PACTL_BINARY@ load-module module-device-manager "do_routing=1" > /dev/null + fi fi if [ x"$SESSION_MANAGER" != x ] ; then