[Pkg-utopia-maintainers] Bug#1102722: xdg-desktop-portal: Delays startup of desktop session for 3 seconds

Lina Bhaile debbugs at linabee.uk
Sat Apr 12 12:25:45 BST 2025


Package: xdg-desktop-portal
Version: 1.20.0+ds-2
Severity: normal

Dear Maintainer,

While logging in to my session (sddm 0.21.0+git20250131.c2b97dd-2, kded6 6.11.0-1,
kwin & plasma-desktop 4:6.3.4-1) xdg-desktop-portal.service delays the startup of the
session by 3 seconds.

Output of `systemd-analyze --user blame`:

3.760s xdg-desktop-portal.service
1.452s plasma-kcminit.service
 594ms plasma-powerdevil.service
 512ms plasma-ksmserver.service
 421ms plasma-plasmashell.service
 409ms plasma-xdg-desktop-portal-kde.service
 338ms plasma-kded6.service
 322ms plasma-polkit-agent.service
 232ms xdg-desktop-portal-gtk.service
 164ms app-kup\x2ddaemon at autostart.service
 161ms plasma-ksystemstats.service
 145ms plasma-kglobalaccel.service
 112ms app-at\x2dspi\x2ddbus\x2dbus at autostart.service
  91ms plasma-kactivitymanagerd.service
  89ms plasma-kwin_wayland.service
  85ms app-com.discordapp.Discord at autostart.service
  85ms app-gnome\x2dkeyring\x2dpkcs11 at autostart.service
  84ms app-gnome\x2dkeyring\x2dsecrets at autostart.service
  84ms app-com.github.wwmm.easyeffects at autostart.service
  84ms app-gnome\x2dkeyring\x2dssh at autostart.service
  82ms flatpak-portal.service
  82ms app-xdg\x2duser\x2ddirs at autostart.service
  75ms app-org.kde.plasma\x2dfallback\x2dsession\x2drestore at autostart.service
  71ms kde-baloo.service
  70ms app-org.kde.discover.notifier at autostart.service
  69ms obex.service
  67ms xdg-desktop-portal-rewrite-launchers.service
  64ms at-spi-dbus-bus.service
  58ms plasma-kcminit-phase1.service
  54ms app-orca\x2dautostart at autostart.service
  47ms plasma-restoresession.service
  37ms plasma-ksplash-ready.service
  34ms app-org.fkoehler.KTailctl at autostart.service
  33ms flatpak-session-helper.service
  31ms dbus.socket
  31ms app-xdg\x2duser\x2ddirs\x2dkde at autostart.service
  29ms app-org.kde.kdeconnect.daemon at autostart.service
  28ms app-org.signal.Signal at autostart.service
  28ms gcr-ssh-agent.socket
  26ms gpg-agent.socket
  22ms app-org.kde.xwaylandvideobridge at autostart.service
  20ms xdg-document-portal.service
  20ms gpg-agent-ssh.socket
  19ms xdg-permission-store.service
  18ms dconf.service
  15ms dbus.service

When using a user drop-in file to make xdg-desktop-portal verbose, the log
indicates that the delay occurs around here:

Apr 12 12:19:44 framework xdg-desktop-portal[21628]: XDP: Found 'kde' in configuration for default
Apr 12 12:19:44 framework xdg-desktop-por[21628]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
Apr 12 12:19:47 framework xdg-desktop-portal[21628]: XDP: providing portal org.freedesktop.portal.MemoryMonitor

Tried to perf-record it but I couldn't. I did not encounter a problem like this on
Fedora 41, I'm going to try swapping dbus-daemon with dbus-broker because I know that
is one difference on that system and this one.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.21-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xdg-desktop-portal depends on:
ii  bubblewrap                                    0.11.0-2
ii  dbus-user-session [default-dbus-session-bus]  1.16.2-2
ii  fuse3                                         3.17.1~rc1-3
ii  gstreamer1.0-plugins-base                     1.26.0-1
ii  gstreamer1.0-plugins-good                     1.26.0-1
ii  init-system-helpers                           1.68
ii  libc6                                         2.41-6
ii  libfuse3-4                                    3.17.1~rc1-3
ii  libgdk-pixbuf-2.0-0                           2.42.12+dfsg-2
ii  libglib2.0-0t64                               2.84.1-1
ii  libgstreamer-plugins-base1.0-0                1.26.0-1
ii  libgstreamer1.0-0                             1.26.0-3
ii  libgudev-1.0-0                                238-6
ii  libjson-glib-1.0-0                            1.10.6+ds-2
ii  libpipewire-0.3-0t64                          1.4.1-1
ii  libsystemd0                                   257.5-2

Versions of packages xdg-desktop-portal recommends:
ii  librsvg2-common  2.60.0+dfsg-1

xdg-desktop-portal suggests no packages.

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list