Products › lamco-dsi-tools › Interfaces › xdg-desktop-portal

xdg-desktop-portal backends: Finding which one your desktop uses

xdg-desktop-portal and its backends (org.freedesktop.portal.Desktop): How the frontend picks a backend, which interfaces a desktop exports, and how to check.

D-Bus org.freedesktop.portal.Desktop

xdg-desktop-portal is the D-Bus service, org.freedesktop.portal.Desktop on the session bus, through which programs ask a Linux desktop for screen casting, remote desktop input, input capture, the clipboard, file choosers, screenshots and much more. It's a frontend: The work is done by xdg-desktop-portal backends, one or more for each desktop, and which backend a desktop uses decides what the portal can do there. Flatpak apps, browsers sharing a screen and remote desktop servers all go through it. lamco-dsi-tools (DSI: Desktop session interfaces) records whether the portal is running, every interface it exports with its version, the backends found and the properties of its session interfaces, without opening a session unless asked.

What it is

The frontend owns org.freedesktop.portal.Desktop and exports interfaces such as org.freedesktop.portal.ScreenCast, org.freedesktop.portal.RemoteDesktop, org.freedesktop.portal.InputCapture and org.freedesktop.portal.Clipboard, each with a version property. It's started on demand: D-Bus starts it when a program first calls it, so a session in which nothing has used the portal yet shows the name with no owner.

A backend is a separate service that implements backend interfaces such as org.freedesktop.impl.portal.ScreenCast and shows the dialogs. Each backend installs a .portal file under /usr/share/xdg-desktop-portal/portals/ with three keys: DBusName, Interfaces, the backend interfaces it implements, and UseIn, the desktops it's meant for. The portal documentation calls UseIn deprecated: Which backend serves which interface is now chosen by portals.conf files. For a session whose XDG_CURRENT_DESKTOP is KDE, the frontend looks for kde-portals.conf and then portals.conf, in the user's configuration directory first and the system's data directories last. Their [preferred] group names a default backend and may name another for any single interface. The frontend exports an interface only when a backend implements it.

So the answer to "which portal backend does my desktop use" is in three places: Which backend services are running, which .portal files are installed, and what portals.conf prefers for the session's desktop. The wlroots portal backend doesn't implement RemoteDesktop, as the toolkit's finding PORTAL-002 notes, so a desktop that uses it has no libei input through the portal.

Which desktops offered it

DesktopState
GNOME Shell 48.7 (Debian 13)present
GNOME Shell 51.0 (Fedora 45)present
KDE Plasma, KWin 6.5.6 (NixOS)present
KDE Plasma, KWin 6.8.2 (KDE neon)present
Sway 1.9not examined
Hyprland 0.56.2present
COSMIC, cosmic-comp 1.0.0present
labwc 0.20.3 (Budgie session, CachyOS)present
Cinnamon Wayland session (Linux Mint)present

Each cell is one version of that desktop on one virtual machine, captured on 2026-11-27 or 2026-11-28 with dsisee observe and no permission dialog answered, so the portal's routes are present, offered and not exercised. Sway's portal reads not examined because the portal wasn't running and the capture was taken without the flag that starts it (PORTAL-008); that's a fact about the run, not about Sway. The findings show what each portal exported: Hyprland 0.56.2, labwc 0.20.3 and the Cinnamon session had no RemoteDesktop interface (PORTAL-002), the Cinnamon session had no ScreenCast interface (PORTAL-004), and both KWin captures and COSMIC had a backend descriptor installed for another desktop (PORTAL-005). The README's run record lists portal diagnose on Sway 1.9, also with --wake-portal, on GNOME Shell 48.7 and on KDE Plasma 6.5.6.

How to check it with lamco-dsi-tools

dsisee portal diagnose                          # frontend, interfaces and versions, backends, properties
dsisee portal diagnose --wake-portal            # start the portal if it isn't running, and record that
dsisee portal probe --duration 30               # then watch the portal and backend names change owner
dsisee observe --wake-portal --out capture.json # the whole session, with the portal started
dsitell health capture.json                     # the portal function and every route through it

dsisee portal diagnose records whether the frontend is on the session bus and who owns it, every interface it exports with its version, and the backends found, from bus names and from .portal files with their DBusName, Interfaces and UseIn keys, each marked with its source. It records the properties of ScreenCast, RemoteDesktop and InputCapture, with the bits of the bitmasks named: The available source types (monitor, window, virtual), cursor modes and device types. It doesn't work out which backend serves which interface, and the capture holds no record of the portals.conf files, so compare its backend list with those files to answer that question in full. It shows no dialog and calls no session method. A portal that isn't running is reported as that and its routes as not examined, unless --wake-portal (or --wake-services) has the instrument start it, which the capture records with the time D-Bus took. portal probe shows a portal or backend restarting.

Opening a session is the job of the commands for each route, which show the portal's permission dialog: The ScreenCast portal, the RemoteDesktop portal and libei, the InputCapture portal and the Clipboard portal.

Findings

  • PORTAL-001: The portal frontend is not running and nothing would start it.
  • PORTAL-002: The portal has no RemoteDesktop interface.
  • PORTAL-003: The RemoteDesktop interface is older than version 2.
  • PORTAL-004: The portal has no ScreenCast interface.
  • PORTAL-005: A portal backend descriptor is for another desktop.
  • PORTAL-006: The portal frontend did not describe itself.
  • PORTAL-007: A command's own call started the portal.
  • PORTAL-008: The portal frontend had not been started.

Related