You are not logged in.

#1 2025-10-10 02:20:55

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

kde xdg-portal and for file picker causes 25s systemd --user boot

I switched to using the kde file picker via xdg-desktop-portal-kde on my desktop so I could use the kde file picker for applications utilizing the xdg portal.

This worked at expected on my desktop, but when I attempted to do so with my laptop, a similar arch install with identical hyprland configurations (save the monitor configuration), and the session reaches graphical.target as expected with minimal delay. Then, in the user slice, the xdg-desktop-portal and kde portal service hang for 25 seonds. I've been unable to find anything in the journal I can take action on and I've been troubleshooting on and off for hours at this point, and I'm out of ideas, so I would appreciate any help understanding this issue anyone might be able to provide.

6.004s NetworkManager-wait-online.service
1.294s tuned.service
1.070s systemd-udev-trigger.service
 935ms dev-nvme0n1p3.device
 929ms systemd-binfmt.service
 655ms tuned-ppd.service
 490ms user@1000.service
 337ms NetworkManager.service
 307ms upower.service
 240ms dev-loop4.device
 237ms udisks2.service
 223ms dev-loop6.device
 221ms dev-loop5.device
 198ms tailscaled.service
 187ms dev-loop3.device
 173ms cups.service
 173ms mnt-harlow.mount
 167ms snapd.service
 159ms dev-loop2.device
 152ms dev-loop1.device
 147ms dev-loop0.device
 130ms systemd-resolved.service
 114ms systemd-journald.service
 100ms systemd-modules-load.service
  89ms boot.mount
  89ms mnt-data.mount
  80ms libvirtd.service
  72ms polkit.service
  72ms var-lib-snapd-snap-core18-2947.mount
  70ms var-lib-snapd-snap-core18-2952.mount
  69ms var-lib-snapd-snap-bare-5.mount
  68ms var-lib-snapd-snap-gnome\x2d3\x2d28\x2d1804-198.mount
  68ms systemd-tmpfiles-setup.service
  65ms systemd-journal-flush.service
  65ms lvm2-monitor.service
  54ms systemd-udevd.service
  53ms systemd-vconsole-setup.service
  49ms systemd-fsck@dev-disk-by\x2duuid-2DB7\x2d1661.service
  46ms dbus-broker.service
  45ms systemd-timesyncd.service
  42ms colord.service
  42ms systemd-tmpfiles-setup-dev-early.service
  41ms rtkit-daemon.service
  39ms systemd-backlight@backlight:amdgpu_bl1.service
  39ms systemd-logind.service
  38ms systemd-hostnamed.service
  36ms wpa_supplicant.service
  35ms user-runtime-dir@1000.service
  35ms systemd-tmpfiles-setup-dev.service
  33ms bluetooth.service
  30ms dev-disk-by\x2duuid-9bb555f7\x2d8bd0\x2d436a\x2db2c7\x2d9c37c5abe408.swap
  28ms tmp.mount
  25ms systemd-random-seed.service
  24ms systemd-rfkill.service
  24ms docker.socket
  24ms systemd-remount-fs.service
  23ms dev-mqueue.mount
  23ms alsa-restore.service
  23ms sys-kernel-debug.mount
  23ms dev-hugepages.mount
  23ms systemd-update-utmp.service
  22ms sys-kernel-tracing.mount
  22ms kmod-static-nodes.service
  20ms proc-sys-fs-binfmt_misc.mount
  20ms sys-kernel-config.mount
  19ms sys-fs-fuse-connections.mount
  19ms modprobe@dm_mod.service
  19ms modprobe@loop.service
  17ms snapd.socket
  15ms crond.service
  15ms systemd-sysctl.service
  13ms systemd-machined.service
  12ms systemd-udev-load-credentials.service
  11ms sshd.service
  11ms var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1535.mount
  10ms var-lib-snapd-snap-snapd-24792.mount
   9ms var-lib-snapd-snap-snapd-25202.mount
   7ms systemd-user-sessions.service
   1ms sshd-unix-local.socket
   1ms systemd-coredump.socket
 861us systemd-ask-password.socket
 755us systemd-factory-reset.socket
 628us systemd-bootctl.socket
 566us systemd-creds.socket
 522us systemd-sysext.socket
 408us dirmngr@etc-pacman.d-gnupg.socket
 101us cups.socket
  95us systemd-importd.socket
  82us systemd-rfkill.socket
  65us systemd-journald-dev-log.socket
  61us lvm2-lvmpolld.socket
  50us gpg-agent-browser@etc-pacman.d-gnupg.socket
  47us systemd-journald.socket
  46us systemd-machined.socket
  45us systemd-resolved-monitor.socket
  41us gpg-agent@etc-pacman.d-gnupg.socket
  41us dm-event.socket
  39us systemd-udevd-varlink.socket
  34us gpg-agent-extra@etc-pacman.d-gnupg.socket
  34us systemd-udevd-control.socket
  33us libvirtd.socket
  32us systemd-udevd-kernel.socket
  32us gpg-agent-ssh@etc-pacman.d-gnupg.socket
  30us systemd-resolved-varlink.socket
  30us dbus.socket
  30us keyboxd@etc-pacman.d-gnupg.socket
  22us systemd-logind-varlink.socket
  22us systemd-hostnamed.socket
  21us virtlogd.socket
  18us virtlockd.socket
  18us libvirtd-admin.socket
  18us libvirtd-ro.socket

tty autologin with getty:

cat /etc/systemd/system/getty@tty1.service.d/autologin.conf                          21:17:56
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin nexus %I $TERM

And the Hyprland user session is managed by uwsm via fish

if status is-login && test -z "$DISPLAY" && test -z "$WAYLAND_DISPLAY" && test -z "$SSH_CONNECTION"
    if uwsm check may-start
        exec uwsm start hyprland-uwsm.desktop
    end
end
systemd-analyze --user blame                                                              21:15:59
24.834s xdg-desktop-portal.service
24.811s plasma-xdg-desktop-portal-kde.service
 1.934s wayland-session-waitenv.service
 1.865s wayland-wm@hyprland\x2duwsm.desktop.service
  321ms wayland-wm-env@hyprland\x2duwsm.desktop.service
  194ms xdg-desktop-portal-gtk.service
   96ms app-geoclue\x2ddemo\x2dagent@autostart.service
   79ms app-at\x2dspi\x2ddbus\x2dbus@autostart.service
   77ms app-nm\x2dapplet@autostart.service
   71ms app-blueman@autostart.service
   65ms app-gnome\x2dkeyring\x2dpkcs11@autostart.service
   64ms app-gnome\x2dkeyring\x2dsecrets@autostart.service
   61ms app-xapp\x2dsn\x2dwatcher@autostart.service
   60ms app-org.kde.plasma\x2dfallback\x2dsession\x2drestore@autostart.service
   52ms app-user\x2ddirs\x2dupdate\x2dgtk@autostart.service
   50ms app-xfsettingsd@autostart.service
   48ms app-org.fcitx.Fcitx5@autostart.service
   41ms dbus-broker.service
   40ms app-org.kde.xwaylandvideobridge@autostart.service
   39ms app-pasystray@autostart.service
   38ms gvfs-daemon.service
   35ms app-snap\x2duserd\x2dautostart@autostart.service
   32ms app-system76\x2duser\x2ddaemon@autostart.service
   30ms xdg-document-portal.service
   30ms obex.service
   29ms xdg-desktop-portal-hyprland.service
   27ms xdg-user-dirs.service
   26ms at-spi-dbus-bus.service
   26ms dbus.socket
   24ms gcr-ssh-agent.socket
   23ms gvfs-metadata.service
   22ms dconf.service
   22ms xdg-permission-store.service
   21ms wayland-session-bindpid@1048.service
    2ms systemd-ask-password.socket
  116us dirmngr.socket
  111us gnome-keyring-daemon.socket
  102us speech-dispatcher.socket
   83us p11-kit-server.socket
   81us pipewire.socket
   79us pipewire-pulse.socket
   52us gpg-agent-extra.socket
   51us gpg-agent.socket
   49us keyboxd.socket
   47us gpg-agent-browser.socket
   43us gpg-agent-ssh.socket
   41us ssh-agent.socket

Thank you again anyone taking the time to help me with this. I just got out of exams so I'm completely burned and have been going in circles.

Last edited by njodoin (2025-10-10 02:33:40)


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#2 2025-10-10 02:22:42

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

The full system journal:
http://0x0.st/Kuwd.txt


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#3 2025-10-10 07:45:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,954

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

https://github.com/Vladimir-csp/uwsm/issues
https://wiki.archlinux.org/title/Hyprland#Starting

What is hyprland-uwsm.desktop, the output of

echo $DBUS_SESSION_BUS_ADDRESS

and what if you skip uwsm?

Oct 09 21:05:48 necromorph dbus-broker-launch[1043]: Missing 'D-Bus Service' section in service file '/usr/local/share//dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service'
Oct 09 21:07:42 necromorph sudo[3430]:    nexus : TTY=pts/0 ; PWD=/home/nexus ; USER=root ; COMMAND=/usr/bin/rm -rf /usr/local/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
Oct 09 21:07:49 necromorph sudo[3502]:    nexus : TTY=pts/0 ; PWD=/home/nexus ; USER=root ; COMMAND=/usr/bin/pacman --remove -- xdg-desktop-portal-kde
Oct 09 21:08:01 necromorph sudo[3665]:    nexus : TTY=pts/0 ; PWD=/home/nexus ; USER=root ; COMMAND=/usr/bin/pacman --sync -- xdg-desktop-portal-kde
Oct 09 21:15:51 necromorph sudo[6324]:    nexus : TTY=pts/0 ; PWD=/home/nexus ; USER=root ; COMMAND=/usr/bin/rm .config/systemd/user/plasma-xdg-desktop-portal-kde.service.d/
Oct 09 21:15:55 necromorph sudo[6377]:    nexus : TTY=pts/0 ; PWD=/home/nexus ; USER=root ; COMMAND=/usr/bin/rm -rf .config/systemd/user/plasma-xdg-desktop-portal-kde.service.d/

"Missing 'D-Bus Service' section" still there after the re-installation?

Offline

#4 2025-10-10 17:39:46

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

I've read both pages. I appreciate you directing me to the appropriate information, regardless. I didn't see any issues in the uwsm open/closed issues which appeared to describe the problem I am experiencing. Its odd, because when I don't have the KDE portal installed, this doesn't happen.

WRT the weird deviation in my use of uwsm in my fish config, I originally based my initial startup sequence off of the uwsm documentation and the hyprland wiki instructions for autostarting.  Originally, when I attempted to log in to this machine via ssh using just the uwsm may-start method, the machine would attempt to start Hyprland. The additional ssh env guards prevent this unwanted behavior. Also, according to the UWSM docs at the time, starting the hyprland desktop unit directly rather than using select should be fine.

I'll try to skip uwsm and see if the behavior differs. Getting the same/expected ordering of applications will require some modifications to my hyprland config though. I'll try this and let you know if it changes the startup behavior.

~ > echo $DBUS_SESSION_BUS_ADDRESS                                                            12:28:19
unix:path=/run/user/1000/bus
~ > cat /usr/share/wayland-sessions/hyprland-uwsm.desktop                                     12:34:51
[Desktop Entry]
Name=Hyprland (uwsm-managed)
Comment=An intelligent dynamic tiling Wayland compositor
Exec=uwsm start -- hyprland.desktop
TryExec=uwsm
DesktopNames=Hyprland
Type=Application

“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#5 2025-10-10 17:51:07

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

Alright, so I've eliminated uwsm from the fish startup and Hyprland configuration. The ~25s timeout from the KDE portal launch is still there, so it doesn't appear to be related.

5.392s NetworkManager-wait-online.service
1.703s ldconfig.service
 948ms NetworkManager.service
 944ms systemd-binfmt.service
 743ms dev-nvme0n1p3.device
 605ms mnt-harlow.mount
 582ms tuned-ppd.service
 573ms systemd-udev-trigger.service
 539ms tuned.service
 471ms upower.service
 223ms tailscaled.service
 163ms snapd.service
 159ms user@1000.service
 138ms cups.service
 122ms systemd-journald.service
 119ms systemd-modules-load.service
  92ms udisks2.service
  76ms mnt-data.mount
  69ms systemd-udevd.service
  66ms systemd-journal-flush.service
  64ms lvm2-monitor.service
  63ms systemd-tmpfiles-setup.service
  63ms systemd-timesyncd.service
  60ms polkit.service
  52ms systemd-resolved.service
  51ms systemd-vconsole-setup.service
  49ms systemd-tmpfiles-setup-dev.service
  49ms systemd-hostnamed.service
  49ms libvirtd.service
  44ms systemd-logind.service
  38ms systemd-fsck@dev-disk-by\x2duuid-2DB7\x2d1661.service
  38ms systemd-tmpfiles-setup-dev-early.service
  36ms boot.mount
  34ms bluetooth.service
  32ms alsa-restore.service
  32ms colord.service
  31ms systemd-sysusers.service
  30ms systemd-journal-catalog-update.service
  30ms dbus-broker.service
  24ms dev-mqueue.mount
  24ms dev-hugepages.mount
  24ms sys-kernel-debug.mount
  23ms sys-kernel-tracing.mount
  23ms tmp.mount
  22ms proc-sys-fs-binfmt_misc.mount
  22ms kmod-static-nodes.service
  21ms dev-disk-by\x2duuid-9bb555f7\x2d8bd0\x2d436a\x2db2c7\x2d9c37c5abe408.swap
  21ms sys-kernel-config.mount
  21ms var-lib-snapd-snap-bare-5.mount
  20ms var-lib-snapd-snap-core18-2947.mount
  20ms wpa_supplicant.service
  20ms modprobe@dm_mod.service
  20ms systemd-update-utmp.service
  20ms sys-fs-fuse-connections.mount
  19ms var-lib-snapd-snap-core18-2952.mount
  19ms modprobe@loop.service
  19ms user-runtime-dir@1000.service
  19ms var-lib-snapd-snap-gnome\x2d3\x2d28\x2d1804-198.mount
  19ms dev-loop3.device
  18ms systemd-rfkill.service
  18ms dev-loop2.device
  18ms systemd-remount-fs.service
  18ms dev-loop4.device
  18ms var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1535.mount
  18ms docker.socket
  17ms dev-loop6.device
  17ms systemd-update-done.service
  17ms crond.service
  16ms systemd-machined.service
  16ms var-lib-snapd-snap-snapd-24792.mount
  16ms dev-loop5.device
  16ms dev-loop1.device
  15ms systemd-backlight@backlight:amdgpu_bl1.service
  14ms var-lib-snapd-snap-snapd-25202.mount
  13ms dev-loop0.device
  13ms systemd-sysctl.service
  12ms rtkit-daemon.service
  12ms sshd.service
  12ms systemd-random-seed.service
  11ms systemd-udev-load-credentials.service
  10ms snapd.socket
   7ms systemd-user-sessions.service
   1ms sshd-unix-local.socket
 873us systemd-creds.socket
 834us systemd-bootctl.socket
 809us systemd-coredump.socket
 662us systemd-factory-reset.socket
 655us systemd-ask-password.socket
 471us dirmngr@etc-pacman.d-gnupg.socket
 460us systemd-sysext.socket
  91us systemd-importd.socket
  91us gpg-agent-browser@etc-pacman.d-gnupg.socket
  82us cups.socket
  72us gpg-agent-ssh@etc-pacman.d-gnupg.socket
  67us systemd-machined.socket
  53us systemd-journald-dev-log.socket
  49us gpg-agent-extra@etc-pacman.d-gnupg.socket
  48us gpg-agent@etc-pacman.d-gnupg.socket
  47us keyboxd@etc-pacman.d-gnupg.socket
  45us systemd-journald.socket
  44us dbus.socket
  43us libvirtd.socket
  38us libvirtd-ro.socket
  38us lvm2-lvmpolld.socket
  37us systemd-resolved-monitor.socket
  36us systemd-logind-varlink.socket
  34us systemd-hostnamed.socket
  32us dm-event.socket
  30us systemd-udevd-control.socket
  28us systemd-udevd-varlink.socket
  24us libvirtd-admin.socket
  24us virtlockd.socket
  23us virtlogd.socket
  20us systemd-resolved-varlink.socket
  13us systemd-udevd-kernel.socket
  11us systemd-rfkill.socket
25.205s xdg-desktop-portal.service
25.090s plasma-xdg-desktop-portal-kde.service
  271ms at-spi-dbus-bus.service
   45ms xdg-desktop-portal-gtk.service
   20ms gvfs-daemon.service
   19ms xdg-desktop-portal-hyprland.service
   17ms xdg-permission-store.service
   16ms dconf.service
   16ms dbus-broker.service
   14ms gvfs-metadata.service
   11ms xdg-document-portal.service
    9ms dbus.socket
    8ms gcr-ssh-agent.socket
  887us systemd-ask-password.socket
   54us gnome-keyring-daemon.socket
   39us p11-kit-server.socket
   38us speech-dispatcher.socket
   38us pipewire.socket
   36us pipewire-pulse.socket
   35us dirmngr.socket
   27us gpg-agent-extra.socket
   23us gpg-agent-browser.socket
   21us gpg-agent-ssh.socket
   20us gpg-agent.socket
   20us ssh-agent.socket
   19us keyboxd.socket

For reference, this was my test fish configuration:

if status is-login && test -z "$DISPLAY" && 
    test -z "$WAYLAND_DISPLAY" && 
    test -z "$SSH_CONNECTION"
    # if uwsm check may-start
    #     exec uwsm start hyprland-uwsm.desktop
    # end
    Hyprland
end

if status is-interactive
    bass source ~/.config/environment.d/environment.conf
    bass source ~/.cargo/env
    bass source ~/.rokit/env
    bind ctrl-d ''
    # Commands to run in interactive sessions can go here
    function bind_bang
        switch (commandline -t)[-1]
        case "!"
            commandline -t -- $history[1]
            commandline -f repaint
        case "*"
            commandline -i !
        end
    end

    function bind_dollar
        switch (commandline -t)[-1]
        case "!"
            commandline -f backward-delete-char history-token-search-backward
        case "*"
            commandline -i '$'
        end
    end

    function fish_user_key_bindings
        bind ! bind_bang
        bind '$' bind_dollar
    end

    function fish_greeting
        fortune -s | cowsay -f larvitar-sm
        echo
    end

    function postexec_test --on-event fish_postexec
        echo
    end

    zoxide init --cmd cd fish | source
    pyenv init - fish | source

    bass source ~/.bash_aliases
end

The journal from the non-uwsm startup: http://0x0.st/KuI6.txt

I could continue to troubleshoot without uwsm, but I would prefer to keep both systems aligned as much as possible.


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#6 2025-10-10 19:23:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,954

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

Fwwi you seem to be stacking uwsm calls there.

Oct 10 12:44:41 necromorph systemd[1018]: Starting Portal service (GTK/GNOME implementation)...
Oct 10 12:44:41 necromorph systemd[1018]: Started Portal service (GTK/GNOME implementation).
Oct 10 12:44:41 necromorph systemd[1018]: Starting Xdg Desktop Portal For KDE...
Oct 10 12:45:06 necromorph /usr/lib/xdg-desktop-portal[1605]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was reached
Oct 10 12:45:06 necromorph /usr/lib/xdg-desktop-portal[1605]: No skeleton to export
Oct 10 12:45:06 necromorph systemd[1018]: Starting Portal service (Hyprland implementation)...
Oct 10 12:45:06 necromorph systemd[1018]: Started Portal service (Hyprland implementation).
Oct 10 12:45:06 necromorph systemd[1018]: Started Portal service.
Oct 10 12:45:06 necromorph systemd[1018]: Started Xdg Desktop Portal For KDE.

What's the output of

pacman -Qs portal
tail /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service /usr/share/applications/org.freedesktop.impl.portal.desktop.kde.desktop /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service

Can you

systemctl --user start plasma-xdg-desktop-portal-kde.service

?

Check https://wiki.archlinux.org/title/XDG_De … _not_start and consider fine-tuning what portal to use for what (if you're desperate to keep the other portal implementations)

Offline

#7 2025-10-10 19:44:26

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

Trying to find more information about why the xdg-desktop-portal service is taking such a long time to start up.

The KDE portal service provides no diagnostic regarding the slowdown.

● plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE
     Loaded: loaded (/usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service; static)
    Drop-In: /run/user/1000/systemd/user/plasma-xdg-desktop-portal-kde.service.d
             └─order-tweak.conf
     Active: active (running) since Fri 2025-10-10 14:07:03 CDT; 19min ago
 Invocation: 3645028b14994ee7b827e7869f590338
   Main PID: 1700 (xdg-desktop-por)
      Tasks: 4 (limit: 37359)
     Memory: 27.5M (peak: 29.4M)
        CPU: 70ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-xdg-desktop-portal-kde.service
             └─1700 /usr/lib/xdg-desktop-portal-kde

Oct 10 14:06:37 necromorph systemd[1013]: Starting Xdg Desktop Portal For KDE...
Oct 10 14:07:03 necromorph systemd[1013]: Started Xdg Desktop Portal For KDE.

A minor diagnostic from the xdg-desktop-portal service indicating the reason might be related to the file picker, but I'm assuming this is because I have kde in the portals configuration only for the file-picker, and the KDE portal is timing out.

● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Fri 2025-10-10 14:07:03 CDT; 17min ago
 Invocation: 66a84057cc8a4e988f01a087c5275b84
   Main PID: 1566 (xdg-desktop-por)
      Tasks: 6 (limit: 37359)
     Memory: 6.3M (peak: 8.8M)
        CPU: 187ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
             └─1566 /usr/lib/xdg-desktop-portal

Oct 10 14:06:37 necromorph systemd[1013]: Starting Portal service...
Oct 10 14:07:03 necromorph /usr/lib/xdg-desktop-portal[1566]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was reached
Oct 10 14:07:03 necromorph /usr/lib/xdg-desktop-portal[1566]: No skeleton to export
Oct 10 14:07:03 necromorph systemd[1013]: Started Portal service.

And the critical chain shows the time spent is within the unit itself:

systemd-analyze --user critical-chain plasma-xdg-desktop-portal-kde.service                      14:26:12
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

plasma-xdg-desktop-portal-kde.service +25.053s
└─basic.target @143ms
  └─dbus-broker.service @124ms +16ms
    └─dbus.socket @115ms +8ms
      └─app.slice @115ms
        └─-.slice @89ms

I enabled debug logging using the following drop in for the kde portals service:

~ > cat .config/systemd/user/plasma-xdg-desktop-portal-kde.service.d/logging.conf             14:37:05
[Service]
Environment="QT_LOGGING_RULES=*.debug=true"
Environment="QT_MESSAGE_PATTERN=[%{time}] %{category}: %{message}"
Oct 10 14:35:29 necromorph systemd[1020]: Starting Xdg Desktop Portal For KDE...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Initializing high-DPI scaling
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: environment variable set: QT_SCREEN_SCALE_FACTORS ""
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Initialization done, high-DPI scaling is active
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: init_platform called with pluginNamesWithArguments "wayland;xcb" platformPluginPath "" platformThemeName "qt6ct:qt5ct"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/platforms" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqwayland.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqwayland.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "wayland",
                                                                     "wayland-egl",
                                                                     "wayland-brcm"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("wayland", "wayland-egl", "wayland-brcm")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqxcb.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqxcb.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "xcb"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QXcbIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("xcb")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqoffscreen.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqoffscreen.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "offscreen"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QOffscreenIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("offscreen")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqvkkhrdisplay.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "vkkhrdisplay"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QVkKhrDisplayIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("vkkhrdisplay")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqeglfs.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqeglfs.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "eglfs"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QEglFSIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("eglfs")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqminimalegl.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqminimalegl.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "minimalegl"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QMinimalEglIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("minimalegl")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqvnc.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqvnc.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "vnc"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QVncIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("vnc")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqminimal.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqminimal.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "minimal"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QMinimalIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("minimal")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqlinuxfb.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqlinuxfb.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "linuxfb"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QLinuxFbIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("linuxfb")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/platforms" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Attempting to load Qt platform plugin "wayland" with arguments QList()
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: "/usr/lib/qt6/plugins/platforms/libqwayland.so" loaded library
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: QT_WAYLAND_TEXT_INPUT_PROTOCOL= ""
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: text input: register zwp_text_input_v1
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: using input method: QtWaylandClient::QWaylandInputContext
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: text input: register zwp_text_input_v3
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: using input method: QtWaylandClient::QWaylandInputContext
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: new tablet manager: ID 34 version 1
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: new tablet seat "" id 1
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Updating high-DPI scaling
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Update done, high-DPI scaling is inactive
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/wayland-shell-integration" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libxdg-shell.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libxdg-shell.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "xdg-shell"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandXdgShellIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("xdg-shell")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "liblayer-shell.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/liblayer-shell.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "layer-shell"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandLayerShellIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("layer-shell")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libivi-shell.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libivi-shell.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "ivi-shell"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandIviShellIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("ivi-shell")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqt-shell.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libqt-shell.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "qt-shell"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandQtShellIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("qt-shell")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libfullscreen-shell-v1.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libfullscreen-shell-v1.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "fullscreen-shell-v1"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandFullScreenShellV1IntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("fullscreen-shell-v1")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libwl-shell-plugin.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libwl-shell-plugin.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "wl-shell"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QWaylandWlShellIntegrationPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("wl-shell")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/wayland-shell-integration" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: "/usr/lib/qt6/plugins/wayland-shell-integration/libxdg-shell.so" loaded library
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Using the 'xdg-shell' shell integration
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Successfully loaded Qt platform plugin "wayland"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Adding "qt6ct:qt5ct" from environment
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Adding platform integration's theme names to list of theme names: QList("hyprland", "generic")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Attempting to create platform theme "qt6ct:qt5ct" via QPlatformThemeFactory::create
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/platformthemes" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqgtk3.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/libqgtk3.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "gtk3"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QGtk3ThemePlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("gtk3")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqt6ct.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/libqt6ct.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "qt6ct",
                                                                     "qt5ct"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "Qt6CTPlatformThemePlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("qt6ct", "qt5ct")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "KDEPlasmaPlatformTheme6.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "kde"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "KdePlatformThemePlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("kde")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: looking at "libqxdgdesktopportal.so"
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "xdgdesktopportal",
                                                                     "flatpak",
                                                                     "snap"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QXdgDesktopPortalThemePlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap")
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/platformthemes" ...
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: "/usr/lib/qt6/plugins/platformthemes/libqt6ct.so" loaded library
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: default fonts: system QFont(Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1) fixed QFont(monospace,9,-1,2,400,0,0,0,0,0,0,0,0,0,0,1)
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: "/usr/lib/qt6/plugins/platformthemes/libqxdgdesktopportal.so" loaded library
Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: default fonts: system QFont(Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1) fixed QFont(monospace,9,-1,2,400,0,0,0,0,0,0,0,0,0,0,1)
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: using qt6ct plugin
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/styles" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: looking at "breeze6.so"
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/styles/breeze6.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QStyleFactoryInterface",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "Breeze"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "StylePlugin",
                                                             "debug": false,
                                                             "version": 395520
                                                         }
                                                         
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("breeze")
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: looking at "libqt6ct-style.so"
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/styles/libqt6ct-style.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QStyleFactoryInterface",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "qt6ct-style",
                                                                     "qt5ct-style"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "Qt6CTStylePlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("qt6ct-style", "qt5ct-style")
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/styles" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Successfully created platform theme "qt6ct:qt5ct" via QPlatformThemeFactory::create
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: using input method: QtWaylandClient::QWaylandInputContext
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/iconengines" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: looking at "libqsvgicon.so"
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Found metadata in lib /usr/lib/qt6/plugins/iconengines/libqsvgicon.so, metadata=
                                                         {
                                                             "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
                                                             "MetaData": {
                                                                 "Keys": [
                                                                     "svg",
                                                                     "svgz",
                                                                     "svg.gz"
                                                                 ]
                                                             },
                                                             "archlevel": 1,
                                                             "className": "QSvgIconPlugin",
                                                             "debug": false,
                                                             "version": 395776
                                                         }
                                                         
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/iconengines" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Initialized icon loader with system theme "breeze-dark" and SVG support true
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Setting fallback theme name to "breeze"
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: "/usr/lib/qt6/plugins/styles/libqt6ct-style.so" loaded library
Oct 10 14:35:55 necromorph systemd[1020]: Started Xdg Desktop Portal For KDE.
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Desktop portal registered successfully
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/qt6/plugins/accessiblebridge" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: checking directory path "/usr/lib/accessiblebridge" ...
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: adding QList("/home/nexus/.config/qt6ct")
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: virtual Qt::LayoutDirection QtWaylandClient::QWaylandInputContext::inputDirection() const
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: QDBusConnection: couldn't handle call to CreateMonitor, no slot matched
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: QDBusConnection: couldn't handle call to CreateMonitor, no slot matched
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: Could not find slot InhibitPortal::CreateMonitor

Here in this output I see the point where there is a delay comes between the lines:

Oct 10 14:35:29 necromorph xdg-desktop-portal-kde[1746]: default fonts: system QFont(Sans Serif,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1) fixed QFont(monospace,9,-1,2,400,0,0,0,0,0,0,0,0,0,0,1)
Oct 10 14:35:55 necromorph xdg-desktop-portal-kde[1746]: using qt6ct plugin

Based on this, I tried removing qt6ct and the startup process went back to normal.
It appears the configuration falls back to qt5ct in this case, but the theming for qt5ct does not get applied correctly to the file pickers.
Still not sure what about qt6ct causes this, but its more information than I had, so I'll keep looking. There is a minor version difference in qt6ct between my desktop and laptop. The desktop is 1 minor version older (0.11-1) and the laptop was/is using 0.11-2.

seth wrote:

Fwwi you seem to be stacking uwsm calls there.

Oct 10 12:44:41 necromorph systemd[1018]: Starting Portal service (GTK/GNOME implementation)...
Oct 10 12:44:41 necromorph systemd[1018]: Started Portal service (GTK/GNOME implementation).
Oct 10 12:44:41 necromorph systemd[1018]: Starting Xdg Desktop Portal For KDE...
Oct 10 12:45:06 necromorph /usr/lib/xdg-desktop-portal[1605]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was reached
Oct 10 12:45:06 necromorph /usr/lib/xdg-desktop-portal[1605]: No skeleton to export
Oct 10 12:45:06 necromorph systemd[1018]: Starting Portal service (Hyprland implementation)...
Oct 10 12:45:06 necromorph systemd[1018]: Started Portal service (Hyprland implementation).
Oct 10 12:45:06 necromorph systemd[1018]: Started Portal service.
Oct 10 12:45:06 necromorph systemd[1018]: Started Xdg Desktop Portal For KDE.

What's the output of

pacman -Qs portal
tail /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service /usr/share/applications/org.freedesktop.impl.portal.desktop.kde.desktop /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service

Can you

systemctl --user start plasma-xdg-desktop-portal-kde.service

?

Check https://wiki.archlinux.org/title/XDG_De … _not_start and consider fine-tuning what portal to use for what (if you're desperate to keep the other portal implementations)

Just saw this between posts and restarts, I have to go out but will look at it in-depth when I return.

Last edited by njodoin (2025-10-10 19:45:16)


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#8 2025-10-10 20:43:04

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

Here's the output, as requested.

Yes, I can start the portal service manually, and I will note, when restarting the kde portal service, it does not exhibit the same timeout. I am going to try downgrading qt6ct to see if that changes the behavior of the portal service on boot.

~ 5.2s > pacman -Qs portal                                                                    14:43:34
         tail /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service /usr/share/applications/org.freedesktop.impl.portal.desktop.kde.desktop /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
local/libportal 0.9.1-2
    GIO-style async APIs for most Flatpak portals
local/libportal-gtk4 0.9.1-2
    GIO-style async APIs for most Flatpak portals - GTK 4 backend
local/xdg-desktop-portal 1.20.3-2
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gtk 1.15.3-1
    A backend implementation for xdg-desktop-portal using GTK
local/xdg-desktop-portal-hyprland 1.3.10-5
    xdg-desktop-portal backend for hyprland
local/xdg-desktop-portal-kde 6.4.5-2 (plasma)
    A backend implementation for xdg-desktop-portal using Qt/KF5
==> /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service <==
Description=Xdg Desktop Portal For KDE
PartOf=graphical-session.target
After=plasma-core.target

[Service]
ExecStart=/usr/lib/xdg-desktop-portal-kde
BusName=org.freedesktop.impl.portal.desktop.kde
Slice=session.slice
# Auto restart is off as we are DBus activated
Restart=no

==> /usr/share/applications/org.freedesktop.impl.portal.desktop.kde.desktop <==
Name[sv]=Portal
Name[tr]=Portal
Name[uk]=Портал
Name[zh_CN]=系统门户
Name[zh_TW]=Portal
Exec=/usr/lib/xdg-desktop-portal-kde
X-KDE-Wayland-Interfaces=org_kde_kwin_fake_input,org_kde_plasma_window_management,zkde_screencast_unstable_v1
X-KDE-DBUS-Restricted-Interfaces=org.kde.KWin.ScreenShot2
NoDisplay=true
Icon=kde

==> /usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service <==
[D-BUS Service]
Name=org.freedesktop.impl.portal.desktop.kde
Exec=/usr/lib/xdg-desktop-portal-kde
SystemdService=plasma-xdg-desktop-portal-kde.service

“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#9 2025-10-10 20:48:04

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

Downgrading qt6ct to 0.11-1 resolves the timeout from the KDE portal service. Still unsure what this means, but I guess the next step is to figure out:

1. Do I need qt6ct
2. who do I report this bug to?

Thanks again @seth for your help, so far. You've got me thinking in the right direction.

Do you have any thoughts on what this could be?


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#10 2025-10-10 21:05:24

njodoin
Member
From: South Central US
Registered: 2024-02-28
Posts: 31
Website

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

After downgrading to 0.11-1 and then upgrading to 0.11-2  it appears I cannot reproduce the behavior anymore.
I'll have to mark this as solved, I believe. I'll be sure to test for a week and mark solved if I'm unable to reproduce again.


“Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.”
― Edsger W. Dijkstra

Offline

#11 2025-10-10 21:07:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,954

Re: kde xdg-portal and for file picker causes 25s systemd --user boot

qt6ct generically does what https://archlinux.org/packages/extra/x8 … tegration/ would do on KDE - it seems the KDE portal or one of the invoked GUI libraries is incompatible w/ qt6ct or even silently depends on plasma-integration
There's also an https://aur.archlinux.org/packages/qt6ct-kde but idk to what extent that will raise any compatibility here.
An alternative approach could be to use the https://archlinux.org/packages/extra/x8 … rtal-lxqt/ implementation until https://archlinux.org/packages/extra/x8 … -hyprland/ provides you w/ a file dialog and you don't want to put up w/ the gtk one.


https://www.opencode.net/trialuser/qt6c … _type=tags doesn't look particular elaborate so let's see whether the problem returns (eg. after a reboot, might be environment related)

Offline

Board footer

Powered by FluxBB