Skip to content

daemon: Show the UI through the backend that the portal selects - #273

Merged
iinuwa merged 3 commits into
linux-credentials:mainfrom
LucFauvel:ui-backend-from-portal
Nov 16, 2026
Merged

iinuwa merged 3 commits into
linux-credentials:mainfrom
LucFauvel:ui-backend-from-portal

Conversation

@LucFauvel

Copy link
Copy Markdown
Contributor

xdg-desktop-portal looks up the backend for
org.freedesktop.impl.portal.experimental.Credential in portals.conf and the .portal files, but credentialsd always called
xyz.iinuwa.credentialsd.UiControl, so the configuration had no effect.

Read the new ui_backend option of CreateCredential and GetCredential, which xdg-desktop-portal sets to the selected backend, and create the UI session there. The name is only read once the caller is trusted, and must be a well-known name. Without the option, as with older xdg-desktop-portal versions, UiControl is used as before.

Assisted-by: Claude:claude-opus-5-5

LucFauvel and others added 2 commits November 14, 2026 15:18
xdg-desktop-portal looks up the backend for
org.freedesktop.impl.portal.experimental.Credential in portals.conf and
the .portal files, but credentialsd always called
xyz.iinuwa.credentialsd.UiControl, so the configuration had no effect.

Read the new ui_backend option of CreateCredential and GetCredential,
which xdg-desktop-portal sets to the selected backend, and create the
UI session there. The name is only read once the caller is trusted, and
must be a well-known name. Without the option, as with older
xdg-desktop-portal versions, UiControl is used as before.

Assisted-by: Claude:claude-opus-5-5
iinuwa
iinuwa previously approved these changes Nov 16, 2026

@iinuwa iinuwa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

This interface is deprecated, but this will help with backend development in the interim.

@iinuwa
iinuwa enabled auto-merge November 16, 2026 20:53
@iinuwa
iinuwa merged commit da3e4d8 into linux-credentials:main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants