On Deepin 25, xdg-desktop-portal-dde is selected as the default portal backend by xdg-desktop-portal.
However, the DDE portal backend does not implement the org.freedesktop.impl.portal.FileChooser interface.
As a result:
org.freedesktop.impl.portal.FileChooser is never registered on the user D-Bus
Any application invoking the FileChooser portal blocks on D-Bus until timeout
Affected applications appear frozen when opening file dialogs
This affects GTK, Qt, Electron, Flatpak, and sandboxed applications.
busctl --user tree org.freedesktop.impl.portal.FileChooser
实际结果(Actual Result)
Command blocks and eventually times out:
Failed to introspect object / of service org.freedesktop.impl.portal.FileChooser: Connection timed out
Applications freeze when opening file chooser dialogs
期望结果(Expected Result)
org.freedesktop.impl.portal.FileChooser should be provided by at least one backend
File chooser dialogs should open instantly
日志信息(Logs)
xdg-desktop-portal journal
Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
Choosing gtk.portal for org.freedesktop.impl.portal.AppChooser as a last-resort fallback
Choosing gtk.portal for org.freedesktop.impl.portal.Print as a last-resort fallback
Indicates missing backend implementation for FileChooser
根因分析(Root Cause Analysis)
xdg-desktop-portal-dde is selected as the default portal backend
The DDE backend does not implement FileChooser
xdg-desktop-portal does not fall back to xdg-desktop-portal-gtk for FileChooser
🐞 Bug Report:Deepin 25 xdg-desktop-portal FileChooser D-Bus Timeout
标题(Title)
(如果需要中文):
系统信息(System Information)
相关软件版本(Package Versions)
问题描述(Description)
On Deepin 25,
xdg-desktop-portal-ddeis selected as the default portal backend byxdg-desktop-portal.However, the DDE portal backend does not implement the
org.freedesktop.impl.portal.FileChooserinterface.As a result:
org.freedesktop.impl.portal.FileChooseris never registered on the user D-BusThis affects GTK, Qt, Electron, Flatpak, and sandboxed applications.
复现步骤(Steps to Reproduce)
实际结果(Actual Result)
期望结果(Expected Result)
org.freedesktop.impl.portal.FileChoosershould be provided by at least one backend日志信息(Logs)
xdg-desktop-portal journal
根因分析(Root Cause Analysis)
xdg-desktop-portal-ddeis selected as the default portal backendxdg-desktop-portaldoes not fall back toxdg-desktop-portal-gtkfor FileChooser临时解决方案(Workaround)
Force GTK portal backend by creating:
Then restart user services:
After this workaround,
org.freedesktop.impl.portal.FileChooseris correctly registered and works as expected.建议修复方案(Suggested Fix)
One of the following:
FileChooserinxdg-desktop-portal-ddexdg-desktop-portal-gtkfor missing interfaces影响范围(Impact)
附加信息(Additional Information)
This issue is reproducible on a clean Deepin 25 installation and does not require third-party software.