Export to PDF fails on Kubuntu

What I’m trying to do

I am trying to use the Export-to-PDF feature in Obsidian, but it fails. A file selector window briefly shows up and vanishes immediately, leaving no exported file. The KDE notification bar shows the error message in the attached screenshot: xdg-desktop-portal-kde Closed Unexpectedly.

Screenie.2025.01.18.11.04.57:+0000

Things I have tried

I have checked the Obsidian help documentation and forums but could not find a resolution for this issue. I have tried the following steps to debug the issue:

  1. Restarting the application: Restarted both Obsidian and the xdg-desktop-portal-kde process, but the problem persists.
  2. Testing in Safe Mode: Enabled Obsidian Safe Mode to rule out plugin interference, but the issue still occurred.
  3. System Checks: Verified that xdg-desktop-portal and related components are installed correctly on my system.
  4. File Permissions: Ensured the directory has write permissions.

Unfortunately, none of these steps resolved the issue. It seems like an interaction between Obsidian’s Export-to-PDF feature and xdg-desktop-portal-kde is causing the crash.

System Information

Here are the details of my system environment:

OS: TUXEDO OS x86_64
Host: NB02 GMxPXxx
Kernel: 6.11.0-108013-tuxedo
DE: Plasma 6.2.5
WM: KWin
CPU: 13th Gen Intel i9-13900HX (32) @ 5.200GHz
GPU: NVIDIA GeForce RTX 4070 Max-Q / Mobile
GPU: Intel Raptor Lake-S UHD Graphics
Memory: 10848MiB / 64034MiB
Terminal Font: Iosevka Comfy 12
Packages: 4318 (dpkg), 1 (pacstall), 171 (brew), 48 (flatpak)

I have also attached a screenshot of the error notification from KDE. Please let me know if you need additional logs or information to help resolve this issue.

The following appears to have fixed the issue.

sudo apt install xdg-desktop-portal-gtk
systemctl --user restart xdg-desktop-portal