diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:35:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:38:39 +0900 |
| commit | 2e806601693e0262641386ce5430d7e8d84b2a77 (patch) | |
| tree | bf8cf3cfbe0d3e8e01524a32ef5ab96ac66de5b5 /internal/outcome/outcome.go | |
| parent | d0a3c6a2f3ac4da3921fa525cf1ee5ea7d68eb1c (diff) | |
internal/outcome: look up pipewire-pulse path
This is for setting up the pipewire-pulse container in shim, for #29.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/outcome.go')
| -rw-r--r-- | internal/outcome/outcome.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/outcome/outcome.go b/internal/outcome/outcome.go index ea01099e..45ef4431 100644 --- a/internal/outcome/outcome.go +++ b/internal/outcome/outcome.go @@ -70,7 +70,7 @@ type outcomeState struct { // Copied from their respective exported values. mapuid, mapgid *stringPair[int] - // Copied from [EnvPaths] per-process. + // Copied from [env.Paths] per-process. sc hst.Paths *env.Paths @@ -172,6 +172,8 @@ type outcomeStateSys struct { // Copied from [hst.Config]. Safe for read by spWaylandOp.toSystem only. directWayland bool + // Copied from [hst.Config]. Safe for read by spPipeWireOp.toSystem only. + directPipeWire bool // Copied from [hst.Config]. Safe for read by spPulseOp.toSystem only. directPulse bool // Copied header from [hst.Config]. Safe for read by spFilesystemOp.toSystem only. @@ -187,9 +189,8 @@ type outcomeStateSys struct { func (s *outcomeState) newSys(config *hst.Config, sys *system.I) *outcomeStateSys { return &outcomeStateSys{ appId: config.ID, et: config.Enablements.Unwrap(), - directWayland: config.DirectWayland, directPulse: config.DirectPulse, - extraPerms: config.ExtraPerms, - sessionBus: config.SessionBus, systemBus: config.SystemBus, + directWayland: config.DirectWayland, directPipeWire: config.DirectPipeWire, directPulse: config.DirectPulse, + extraPerms: config.ExtraPerms, sessionBus: config.SessionBus, systemBus: config.SystemBus, sys: sys, outcomeState: s, } } @@ -295,7 +296,7 @@ func (state *outcomeStateSys) toSystem() error { // optional via enablements &spWaylandOp{}, &spX11Op{}, - spPipeWireOp{}, + &spPipeWireOp{}, &spPulseOp{}, &spDBusOp{}, |
