Go to index / Go to protocols

treeland_app_id_resolver_v1 ↗

resolve application identifiers for treeland

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_app_id_resolver_v1
treeland_app_id_resolver_manager_v1

Version 1
Compositor Support
Version 1
treeland 0.8.0

manager for app id resolver

Create a resolver object. Typically exactly one privileged helper (a Wayland client with DBus access) binds this interface and serves identification requests coming from the compositor.

treeland_app_id_resolver_manager_v1
request destroy()
Destructor

    destroy the manager

    treeland_app_id_resolver_manager_v1
    request get_resolver(
        id: new_id<treeland_app_id_resolver_v1>,
    )

      create/bind a resolver object

      Create or bind a resolver object. Only one resolver may be registered per session. Treeland is a multi-user compositor; different user sessions may each register their own resolver. If a resolver is already bound in the same session, the compositor will report an error on the manager and will NOT create a new resolver object for this request.

      treeland_app_id_resolver_manager_v1
      enum error {
          resolver_already_exists = 1,
      }
      • resolver_already_exists — A resolver is already registered in this session with the manager

      treeland_app_id_resolver_v1
      treeland_app_id_resolver_v1

      Version 1

      app id resolver

      The compositor sends identify_request with a unique request_id and a pidfd. The client must answer exactly once via respond(request_id, app_id). If resolution fails respond with an empty string.

      treeland_app_id_resolver_v1
      event identify_request(
          request_id: uint,
          pidfd: fd,
      )
      • request_id — monotonic id generated by compositor
      • pidfd — pidfd referencing the target process

      ask client to resolve pidfd to application id

      Sent by the compositor to ask the helper to resolve a process to an application identifier.

      treeland_app_id_resolver_v1
      request respond(
          request_id: uint,
          app_id: string,
          sandbox_engine_name: string,
      )
      • request_id — the request ID from identify_request
      • app_id — the resolved application identifier, or empty string on failure
      • sandbox_engine_name — the sandbox engine / security context name (required, non-empty)

      respond with app id and sandbox_engine_name (empty app_id on failure)

      Respond to an identify_request. The sandbox_engine_name must be provided and matches the context in which the process is running (container, sandbox, etc). If resolution fails, respond with an empty app_id.

      treeland_app_id_resolver_v1
      request destroy()
      Destructor

        destroy resolver