Skip to content

Compositor-agnostic way of waiting for compositor exit #1

@alebastr

Description

@alebastr

session.sh script is currently using swaymsg -t subscribe '["shutdown"]' to run tasks on compositor exit. That prevents the script from being reusable in other wayland compositors, e.g. wayfire.

The more portable options are to connect to the wayland socket and wait until it is closed or to lookup the compositor pid by the wayland socket and wait for it's exit with tail --pid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsessionSystemd session and environment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions