You are not logged in.

#1 2024-11-11 08:19:51

thorfinn_3
Member
Registered: 2024-11-11
Posts: 1

Failed to start XDG Desktop Portal for KDE

Hello, I'm using Arch Linux with standalone i3wm (as in without any DE).
I wanted to change the default Firefox file picker with the KDE one, as I did in Fedora i3 spin, so:

$ sudo pacman -S firefox
$ sudo pacman -S xdg-desktop-portal xdg-desktop-portal-kde kdialog
$ mkdir -p ~/.config/systemd/user/xdg-desktop-portal.service.d/

And then to force the desktop environment as mentioned in https://wiki.archlinux.org/title/XDG_Desktop_Portal

$ nvim ~/.config/systemd/user/xdg-desktop-portal.service.d/override.conf
[Service]
Environment="XDG_CURRENT_DESKTOP=KDE"

I also changed
widget.use-xdg-desktop-portal.file-picker
from 2 to 1 in about:config in Firefox.

This setup worked without issues on Fedora i3 spin, yet with Arch both on VirtualBox as well as on my laptop I encounter the same problem, xdg-desktop-portal.service is running but plasma-xdg-desktop-portal-kde.service fails.

$ systemctl --user status plasma-xdg-desktop-portal-kde.service

× plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE
     Loaded: loaded (/usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service; static)
     Active: failed (Result: core-dump) since Mon 2024-11-11 08:31:51 CET; 5min ago
 Invocation: 37327609d7ff4cc092eb96dc50a930b5
    Process: 544 ExecStart=/usr/lib/xdg-desktop-portal-kde (code=dumped, signal=ABRT)
   Main PID: 544 (code=dumped, signal=ABRT)
 
Nov 11 08:31:51 host-name systemd[388]: Failed to start Xdg Desktop Portal For KDE.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Start request repeated too quickly.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Failed with result 'core-dump'.
Nov 11 08:31:51 host-name systemd[388]: Failed to start Xdg Desktop Portal For KDE.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Start request repeated too quickly.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Failed with result 'core-dump'.
Nov 11 08:31:51 host-name systemd[388]: Failed to start Xdg Desktop Portal For KDE.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Start request repeated too quickly.
Nov 11 08:31:51 host-name systemd[388]: plasma-xdg-desktop-portal-kde.service: Failed with result 'core-dump'.
Nov 11 08:31:51 host-name systemd[388]: Failed to start Xdg Desktop Portal For KDE.

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

Job for plasma-xdg-desktop-portal-kde.service failed because a fatal signal was delivered causing the control process to dump core.
See "systemctl --user status plasma-xdg-desktop-portal-kde.service" and "journalctl --user -xeu plasma-xdg-desktop-portal-kde.service" for details.

$ systemctl --user status plasma-xdg-desktop-portal-kde.service

× plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE
     Loaded: loaded (/usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service; static)
     Active: failed (Result: core-dump) since Mon 2024-11-11 08:37:42 CET; 1s ago
 Invocation: 42b8b47b16e44c8b971ff10df45ae3b5
    Process: 626 ExecStart=/usr/lib/xdg-desktop-portal-kde (code=dumped, signal=ABRT)
   Main PID: 626 (code=dumped, signal=ABRT)
   Mem peak: 5.6M
        CPU: 66ms
 
Nov 11 08:37:41 host-name systemd[388]: Starting Xdg Desktop Portal For KDE...
Nov 11 08:37:41 host-name xdg-desktop-portal-kde[626]: qt.qpa.xcb: could not connect to display
Nov 11 08:37:41 host-name xdg-desktop-portal-kde[626]: qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
Nov 11 08:37:41 host-name xdg-desktop-portal-kde[626]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Nov 11 08:37:41 host-name xdg-desktop-portal-kde[626]: This application failed to start because no Qt platform plugin could be initialized.
 
                                                        Available platform plugins are: vkkhrdisplay, vnc, minimalegl, wayland, eglfs, offscreen, wayland-egl, linuxfb, minimal, xcb.
Nov 11 08:37:42 host-name systemd-coredump[630]: [?] Process 626 (xdg-desktop-por) of user 1000 dumped core.
 
                                                  Stack trace of thread 626:
                                                  #0  0x00007863f04a53f4 n/a (libc.so.6 + 0x963f4)
                                                  #1  0x00007863f044c120 raise (libc.so.6 + 0x3d120)
                                                  #2  0x00007863f04334c3 abort (libc.so.6 + 0x244c3)
                                                  #3  0x00007863f0a905e8 n/a (libQt6Core.so.6 + 0x905e8)
                                                  #4  0x00007863f0a91571 _ZNK14QMessageLogger5fatalEPKcz (libQt6Core.so.6 + 0x91571)
                                                  #5  0x00007863f10def8b n/a (libQt6Gui.so.6 + 0xdef8b)
                                                  #6  0x00007863f118a438 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt6Gui.so.6 + 0x18a438)
                                                  #7  0x00007863f0b57d5d _ZN23QCoreApplicationPrivate4initEv (libQt6Core.so.6 + 0x157d5d)
                                                  #8  0x00007863f118a4ce _ZN22QGuiApplicationPrivate4initEv (libQt6Gui.so.6 + 0x18a4ce)
                                                  #9  0x00007863f1af95a6 _ZN19QApplicationPrivate4initEv (libQt6Widgets.so.6 + 0xf95a6)
                                                  #10 0x00006149a3a9a3c0 n/a (xdg-desktop-portal-kde + 0x273c0)
                                                  #11 0x00007863f0434e08 n/a (libc.so.6 + 0x25e08)
                                                  #12 0x00007863f0434ecc __libc_start_main (libc.so.6 + 0x25ecc)
                                                  #13 0x00006149a3a9a8f5 n/a (xdg-desktop-portal-kde + 0x278f5)
 
                                                  Stack trace of thread 627:
                                                  #0  0x00007863f051abb0 ppoll (libc.so.6 + 0x10bbb0)

Not sure how to set it up properly. Let me point out again that this happens both on my VirtualBox and my laptop.

Last edited by thorfinn_3 (2024-11-11 08:27:40)

Offline

#2 2024-11-11 13:11:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,973

Re: Failed to start XDG Desktop Portal for KDE

qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin

On archlinux those are provided by the xcb-util-cursor package, is that installed ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB