Skip to content

Add PipeWire session template with automatic connection save/restore #293

Description

@franeum

Hi, I'm a RaySession user working with PipeWire. I noticed that RaySession doesn't restore PipeWire/JACK connections when a session is loaded.
I created a new session template called "with PipeWire" that automatically saves and restores connections using pw-link. It works by hooking into the existing save.sh and load.sh scripts:

  • save.sh — when the session is saved, it reads all active connections with pw-link -l and saves them to connections.sh in the session folder
  • load.sh — when the session is loaded, it disconnects all existing connections and restores the saved ones, with a retry mechanism for ports that are slow to initialize

This required adding with_pipewire to FACTORY_SESSION_TEMPLATES in ray.py and a corresponding entry in child_dialogs.py.
Would you be interested in a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions