Go to index / Go to protocols

treeland_prelaunch_splash_unstable_v2 ↗

prelaunch splash screen management

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_prelaunch_splash_unstable_v2
treeland_prelaunch_splash_manager_v2

Version 1

prelaunch splash screen manager

This interface is a manager for creating prelaunch splash screens. A prelaunch splash screen is a placeholder surface that is shown before an application's main window is mapped. This helps to improve the perceived startup time.

It is particularly useful for application launchers to provide immediate feedback to the user.

Compared to treeland_prelaunch_splash_manager_v1, this version returns a splash object from create_splash. The caller can destroy the object to dismiss the splash, and the compositor can send events (e.g. timeout) back to the caller through the object.

treeland_prelaunch_splash_manager_v2
request destroy()
Destructor

    destroy the manager

    treeland_prelaunch_splash_manager_v2
    request create_splash(
        splash: new_id<treeland_prelaunch_splash_v2>,
        app_id: string,
        instance_id: string,
        sandbox_engine_name: string,
        icon_buffer: nullable object<wl_buffer>,
    )
    • splash — new splash object
    • app_id — the application ID
    • instance_id — the application instance ID
    • sandbox_engine_name — the sandbox engine / security context name (required, non-empty)
    • icon_buffer — optional icon image as wl_buffer (e.g. wl_shm)

    create a new splash screen

    Creates a new prelaunch splash screen and returns a splash object.

    The app_id is a string that identifies the application. The compositor will use this ID together with sandbox_engine_name to match the splash screen with the actual application window when it appears. This matching mechanism should also work for XWayland windows.

    The instance_id identifies a specific application instance, allowing multiple splashes for non-singleton applications. The compositor can use this to associate a splash with a particular launch instance.

    Callers MUST provide a non-empty sandbox_engine_name string which identifies the sandboxing/container.

    treeland_prelaunch_splash_unstable_v2
    treeland_prelaunch_splash_v2

    Version 1

    prelaunch splash screen object

    Represents a single prelaunch splash screen created by the manager.

    The caller can destroy this object to dismiss the corresponding splash. The compositor may also send events through this object, for example to notify the caller that the splash was closed due to a timeout.

    treeland_prelaunch_splash_v2
    request destroy()
    Destructor

      dismiss and destroy the splash

      Dismisses the splash screen and destroys this object.