aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/app/app.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-26 21:56:07 +0900
committerOphestra <cat@gensokyo.uk>2026-06-26 21:56:07 +0900
commit6863bcafd14e7f9ac2bc25b67323db589d6fe752 (patch)
tree7b6df93ace0a57bac6d5f78e10fabbd85fbaf53a /cmd/app/app.go
parent39f023d0e507662171caf5c7a9a8f896e05810b2 (diff)
cmd/app: optional insecure options
These are useful for very specific cases by the maintainer. No app should ever require this. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/app/app.go')
-rw-r--r--cmd/app/app.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go
index 59bc93ae..4e4f314d 100644
--- a/cmd/app/app.go
+++ b/cmd/app/app.go
@@ -207,6 +207,17 @@ func parse(
c.SchedPriority = ext.Int(v)
continue
+ case "insecure":
+ switch value {
+ case "pipewire":
+ *c.Enablements |= hst.EPipeWire
+ c.DirectPipeWire = true
+ continue
+
+ default:
+ return nil, fmt.Errorf("invalid insecure flag %q", value)
+ }
+
case "env":
if key, value, ok = strings.Cut(value, "="); !ok {
return nil, fmt.Errorf("invalid environment %q", key)