forked from rosa/hakurei
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user