https://bugs.kde.org/show_bug.cgi?id=506324
Bug ID: 506324 Summary: Inconsistent handling of DBUS org.mpris.MediaPlayer2.Raise Classification: Plasma Product: plasmashell Version First 6.4.0 Reported In: Platform: openSUSE OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: remi+...@piau.eu CC: k...@davidedmundson.co.uk Target Milestone: 1.0 SUMMARY The semantic of the Raise MPRIS method is not consistent. It changes with the state of the application: background or not. Raising an open window does not always bring it to foreground as should be. I think this should be fixed or at the very least be documented somewhere. RELATED COMPONENTS: Task Manager and Icons-Only Task Manager Widget, Media Player Widget STEPS TO REPRODUCE 1. Setup: - Install elisa (or any player that can play in background) - Write the provided script to file 2. Raise semantic 1: asks for attention and window does not appear - Minimise elisa - Raise elisa (systemtray>mediaplayer>rightclick>open OR use the provided script) - Elisa window change color in taskmanager but does not appear 3. Raise semantic 2: window appear - Make elisa play in the background (may need to be enabled in settings) - Raise elisa (systemtray>mediaplayer>rightclick>open OR use the provided script) - Elisa window appear in the foreground I also tested variations of this scheme with several plasma desktops and other players such as Firefox. Raise first script: ``` #!/bin/bash set -euo pipefail QDBUS=qdbus6 # Get first mpris enabled session FIRST_SESSION="$($QDBUS | grep '^ org.mpris' | head -n 1 | cut -d ' ' -f 2)" echo "Working on session: $FIRST_SESSION" CAN_RAISE="$($QDBUS $FIRST_SESSION /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.CanRaise)" echo "Session can raise: $CAN_RAISE" echo "Raising" $QDBUS $FIRST_SESSION /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Raise ``` OBSERVED RESULT If player is in background, its window appears on the current desktop, else if player window is open but not in focus then task-manager highlights the playing windows else player window is in focus and nothing happens. EXPECTED RESULT Minimized window/any window raised via MPRIS DBUS interface should be displayed in foreground and take focus. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20250624 KDE Plasma Version: 6.4.0 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.1 Kernel Version: 6.15.3-1-default (64-bit) Graphics Platform: Wayland -- You are receiving this mail because: You are watching all bug changes.