diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-28 19:44:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-28 19:44:48 +0900 |
| commit | 8bf383c3987573aa26fcc8039be015880a9f3564 (patch) | |
| tree | e350cacae93e500b9c36e60f7add7fec9f952d53 /cmd/app | |
| parent | 3a27514df88075d2f7c3b39fca02f9cd89e5e0d5 (diff) | |
cmd/app: desktop portal insecure directivestaging
This enables screencasting for now. This is an insecure directive
because of the fundamental flaws of portals described in #21.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/app')
| -rw-r--r-- | cmd/app/app.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go index ca809334..af9a3cf7 100644 --- a/cmd/app/app.go +++ b/cmd/app/app.go @@ -233,6 +233,19 @@ func parse( c.DirectPipeWire = true continue + case "desktop": + *c.Enablements |= hst.EDBus + if c.SessionBus.Call == nil { + c.SessionBus.Call = make(map[string]string) + } + c.SessionBus.Call["org.freedesktop.portal.Desktop"] = "*" + if c.SessionBus.Broadcast == nil { + c.SessionBus.Broadcast = make(map[string]string) + } + c.SessionBus.Broadcast["org.freedesktop.portal.Desktop"] = + "@/org/freedesktop/portal/*" + continue + default: return nil, fmt.Errorf("invalid insecure flag %q", value) } |
