diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-07 23:35:29 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-07 23:35:29 +0900 |
| commit | bf856f06e5dc864a1e3714fc8f1fd15ddb433ee7 (patch) | |
| tree | bec15ca318984df884aa1eabeba5e8bd581bffd0 /internal | |
| parent | 1931b5460034b63dcb1c89bd0c8825a751829f45 (diff) | |
internal/pipewire: constant for PIPEWIRE_REMOTE
This is not defined anywhere in upstream PipeWire, no idea why.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/pipewire/pipewire.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/pipewire/pipewire.go b/internal/pipewire/pipewire.go index db566832..8d7e751d 100644 --- a/internal/pipewire/pipewire.go +++ b/internal/pipewire/pipewire.go @@ -783,6 +783,9 @@ func (ctx *Context) Close() (err error) { } } +// Remote is the environment (sic) with the remote name. +const Remote = "PIPEWIRE_REMOTE" + /* modules/module-protocol-native/local-socket.c */ const DEFAULT_SYSTEM_RUNTIME_DIR = "/run/pipewire" @@ -821,7 +824,7 @@ func ConnectName(name string, manager bool) (ctx *Context, err error) { } if name == "" { - if v, ok := os.LookupEnv("PIPEWIRE_REMOTE"); !ok || v == "" { + if v, ok := os.LookupEnv(Remote); !ok || v == "" { name = PW_DEFAULT_REMOTE } else { name = v |
