From 8bf383c3987573aa26fcc8039be015880a9f3564 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Nov 2026 19:44:48 +0900 Subject: cmd/app: desktop portal insecure directive This enables screencasting for now. This is an insecure directive because of the fundamental flaws of portals described in #21. Signed-off-by: Ophestra --- cmd/app/app.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) } -- cgit v1.3.1