• Michael Murphy (S76)@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months ago

    applets live in their own process and communicate via Wayland protocols (behind a COSMIC API)

    Even better. A COSMIC API was not necessary since Wayland protocols already exist for this (layer-shell and security-context).

      • Michael Murphy (S76)@lemmy.worldM
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 months ago

        Wayland compositors use IPC over a UNIX socket to communicate with Wayland clients. To increase security and enable sandboxed applet support, COSMIC applets use the security-context protocol for their IPC connection to the compositor. To be an applet, COSMIC applications use the layer-shell protocol to behave as an applet. Neither of which were made for COSMIC. Some other Wayland compositors support these protocols. You can see which compositors support the protocols at the bottom of the wayland.app protocol pages.