treeland_app_id_resolver_unstable_v2 ↗
Copyright
SPDX-FileCopyrightText: 2025 - 2026 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT
- treeland_app_id_resolver_manager_v2 — manager for the app id resolver bridge
- treeland_app_id_resolver_v2 — app id resolver
app id resolver bridge for treeland
Internal bridge between treeland and the user-session treeland-session-helper. Treeland is a multi-user compositor and does not host per-user-session D-Bus itself, so it asks treeland-session-helper, running in the user session, to map a process (identified by a pidfd) to its application identifier and sandbox engine name. treeland-session-helper answers over this Wayland protocol; it in turn resolves the request through D-Bus with dde-application-manager. This protocol is only for that dedicated treeland-session-helper bridge, not a general application-developer API, and regular clients must not bind it.
The key words "must", "must not", "required", "shall", "shall not", "should", "should not", "recommended", "may", and "optional" in this document are to be interpreted as described in RFC 2119.
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_unstable_v2
treeland_app_id_resolver_manager_v2
- error
- destroy — destroy the manager
- get_resolver — create a resolver object
manager for the app id resolver bridge
Factory global for creating resolver objects. Typically exactly one treeland-session-helper instance (a Wayland client in the user session) binds this interface and serves identification requests coming from the compositor. Only the treeland-session-helper bridge should bind this global; regular application clients must not use it.
treeland_app_id_resolver_unstable_v2
treeland_app_id_resolver_v2
- destroy — destroy the resolver
- respond — respond with resolved application identifier
- identify_request — request identification of a process
app id resolver
Per-session resolver object created through the manager. The compositor sends identify_request events carrying a pidfd, and treeland-session-helper must respond exactly once per request via the respond request. If resolution fails it responds with an empty app_id.