Commit 4ac78e71 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Ignore player's from KDE Connect when suspending

KDE Connect exposes remote players as local MPRIS players.
When suspeding this can result in music on another device being paused which is usually undesirable.

BUG: 427209
(cherry picked from commit 766159b6)
parent 55e0bd44
......@@ -841,6 +841,13 @@ void Core::onAboutToSuspend()
if (serviceName.startsWith(QLatin1String("org.mpris.MediaPlayer2.kdeconnect.mpris_"))) {
// This is actually a player on another device exposed by KDE Connect
// We don't want to pause it
// See
qCDebug(POWERDEVIL) << "Pausing media player with service name" << serviceName;
QDBusMessage pauseMsg = QDBusMessage::createMethodCall(serviceName,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment