From: Rafael Sadowski Subject: Re: Fcitx5 crashes in KDE Plasma on OpenBSD -current To: Droid niu Cc: ports@openbsd.org Date: Tue, 29 Jul 2025 20:26:11 +0200 On Tue Jul 29, 2025 at 08:08:42PM +0800, Droid niu wrote: > Hi, > > I'm currently using OpenBSD -current (amd64) with KDE Plasma installed via > packages. When trying to use fcitx5 as an input method framework, it fails > to work properly in KDE, and crashes shortly after launching. > > > Here's the output when I start fcitx5 manually: > > --- > > fcitx5 > > I2025-07-29 18:45:30.974558 xcbconnection.cpp:189] Connecting to X11 > display, display name::0. > I2025-07-29 18:45:31.132227 dbusmodule.cpp:790] Service name change: > org.fcitx.Fcitx5 :1.104 > E2025-07-29 18:45:31.132498 portalsettingmonitor.cpp:115] DBus call error: > org.freedesktop.DBus.Error.ServiceUnknown The name > org.freedesktop.portal.Desktop was not provided by any .service files > > dbus[23920]: arguments to dbus_connection_dispatch() were incorrect, > assertion "connection != NULL" failed > Abort trap (core dumped) > > --- > > fcitx5 seems to work fine in `cwm` or minimal X11 sessions, but not in KDE. > The same environment variables (`XMODIFIERS`, `GTK_IM_MODULE`, > `QT_IM_MODULE`) are properly set. > > This seems related to the lack of `xdg-desktop-portal` or some integration > issue in KDE. Should I install anything else to make fcitx5 work on KDE > under OpenBSD? Or is this a known issue? > > Thanks for maintaining the KDE and fcitx ports. Let me know if I can help > provide further logs or testing. > > Regards, > niu For me it starts without issues: fcitx5 I2025-07-29 20:21:03.622540 instance.cpp:1385] Override Enabled Addons: {} I2025-07-29 20:21:03.622908 instance.cpp:1386] Override Disabled Addons: {} I2025-07-29 20:21:03.630687 xcbconnection.cpp:189] Connecting to X11 display, display name::0. I2025-07-29 20:21:03.631660 addonmanager.cpp:205] Loaded addon xcb I2025-07-29 20:21:03.633498 addonmanager.cpp:205] Loaded addon quickphrase I2025-07-29 20:21:03.639298 addonmanager.cpp:205] Loaded addon keyboard I2025-07-29 20:21:03.639710 addonmanager.cpp:205] Loaded addon imselector I2025-07-29 20:21:03.640785 addonmanager.cpp:205] Loaded addon clipboard I2025-07-29 20:21:03.645802 addonmanager.cpp:205] Loaded addon dbus I2025-07-29 20:21:03.646409 addonmanager.cpp:205] Loaded addon unicode I2025-07-29 20:21:03.648677 addonmanager.cpp:205] Loaded addon ibusfrontend I2025-07-29 20:21:03.649716 addonmanager.cpp:205] Loaded addon dbusfrontend I2025-07-29 20:21:03.652153 addonmanager.cpp:205] Loaded addon fcitx4frontend I2025-07-29 20:21:03.653556 addonmanager.cpp:205] Loaded addon xim I2025-07-29 20:21:03.700214 inputmethodmanager.cpp:209] Found 617 input method(s) in addon keyboard I2025-07-29 20:21:03.700452 inputmethodmanager.cpp:132] No valid input method group in configuration. Building a default one I2025-07-29 20:21:03.701073 instance.cpp:379] Items in Group 1: [InputMethodGroupItem(keyboard-de,layout=)] I2025-07-29 20:21:03.701290 instance.cpp:379] Items in Group 2: [InputMethodGroupItem(keyboard-gb,layout=)] I2025-07-29 20:21:03.701333 instance.cpp:384] Generated groups: [Group 1, Group 2] I2025-07-29 20:21:03.727220 addonmanager.cpp:205] Loaded addon kimpanel I2025-07-29 20:21:03.727842 addonmanager.cpp:205] Loaded addon virtualkeyboard I2025-07-29 20:21:03.768459 classicui.cpp:64] Created classicui for x11 display::0 I2025-07-29 20:21:03.768559 addonmanager.cpp:205] Loaded addon classicui I2025-07-29 20:21:03.769350 addonmanager.cpp:205] Loaded addon notificationitem I2025-07-29 20:21:03.770206 addonmanager.cpp:205] Loaded addon notifications I2025-07-29 20:21:03.770721 dbusmodule.cpp:790] Service name change: org.fcitx.Fcitx5 :1.93 I2025-07-29 20:21:03.770880 kimpanel.cpp:116] Kimpanel new owner: I2025-07-29 20:21:03.770998 virtualkeyboard.cpp:216] VirtualKeyboard new owner: E2025-07-29 20:21:03.771097 portalsettingmonitor.cpp:115] DBus call error: org.freedesktop.DBus.Error.ServiceUnknown The name org.freedesktop.portal.Desktop was not provided by any .service files Do you have running a systemwide (rcctl start messagebus) dbus and a session one?