Skip to content

Portal backend request#177

Merged
iinuwa merged 6 commits into
mainfrom
portal-backend-request
Jun 21, 2026
Merged

Portal backend request#177
iinuwa merged 6 commits into
mainfrom
portal-backend-request

Conversation

@iinuwa

@iinuwa iinuwa commented Jun 21, 2026

Copy link
Copy Markdown
Member

Updates the backend API to act more like others:

  • exports an org.freedesktop.impl.portal.Request object with a Close() method to be used for cancellation, instead of a special method on impl.portal.Credential.Ceremony.
    • Note that there are no close signals on impl.portal.Request, as opposed to a portal.Request. The caller should subscribe to the backend request object going away.
  • The Initialize() method also now takes handle instead of receiving and returning and returning a handle.
    • This removes the ambiguity between whether the exported path and the given path is correct; it's not always the given handle
    • This also obviates the Start() method, as the caller can subscribe to the signals before sending the call.

@iinuwa iinuwa force-pushed the portal-backend-request branch from 6738459 to 0b225cf Compare June 21, 2026 04:12
@iinuwa iinuwa merged commit c3121c5 into main Jun 21, 2026
1 check passed
@iinuwa iinuwa deleted the portal-backend-request branch June 21, 2026 20:56
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.

1 participant