mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running? Warning
PipeWire version (pipewire --version
):
pipewire
Compiled with libpipewire 0.3.65
Linked with libpipewire 0.3.65
- Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
):
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
- Desktop Environment:
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Graphics Platform: Wayland
- Kernel version (
uname -r
):
6.2.12-x64v3-xanmod1 (64-bit)
Description of Problem:
Hello guys,
Since 6d58c739 (pipewire 0.3.64) I guess, we're having these:
sudo journalctl -e -p warning --grep mod.rt
Mai 03 00:18:28 andreidesk pipewire[1176]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Mai 03 00:18:28 andreidesk pipewire-pulse[1178]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Mai 03 00:18:28 andreidesk pipewire-pulse[1178]: mod.rt: found session bus but no portal
Mai 03 00:18:28 andreidesk pipewire[1176]: mod.rt: found session bus but no portal
Mai 03 00:18:36 andreidesk pipewire-pulse[1601]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Mai 03 00:18:36 andreidesk pipewire-pulse[1601]: mod.rt: found session bus but no portal
Mai 03 00:18:36 andreidesk pipewire[1599]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Mai 03 00:18:36 andreidesk pipewire[1599]: mod.rt: found session bus but no portal
While the messages are just a warning, in a running desktop session, they can be quite confusing (which is a bit the opposite of the intent from the commit). Of course xdg-desktop-portal is running, but the Dbus session is per-user, and these warnings seem to be generated because mod.rt is looking for a per-system session (so far as I understand the code of the commit) and logging.
Could we prevent this logging if a running per-user session is detected? Or at the minimum, maybe rephrase the message to better indicate why it appears?
How Reproducible:
Have pipewire > 0.3.64 installed and running
Steps to Reproduce:
- Log into a Graphical Session
- Open a terminal
- sudo journalctl -e -p warning --grep mod.rt
Actual Results:
mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Have not tested yet pipewire > 0.3.65.